X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=cmd%2Fweb%2Fjs%2Fpoloniex.jsx;h=b28bc26a7b39f4dd78c252aa804573b5c89766fb;hb=refs%2Ftags%2Fv0.0.12;hp=6019ef8cb59402ac143e1fdc4cf9d1668360b7fa;hpb=d1c0ccfcb84f1b8778e38b027a333d03e1f4ae9e;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git diff --git a/cmd/web/js/poloniex.jsx b/cmd/web/js/poloniex.jsx index 6019ef8..b28bc26 100644 --- a/cmd/web/js/poloniex.jsx +++ b/cmd/web/js/poloniex.jsx @@ -16,6 +16,8 @@ class PoloniexController extends React.Component { this.setState({'flag': 'invalidCredentials', 'variationP': null, 'balance': null, 'balances': null, 'periodStart': null}); } else if (err.code === 'ip_restricted_api_key') { this.setState({'flag': 'ipRestricted', 'variationP': null, 'balance': null, 'balances': null, 'periodStart': null}); + } else if (err.code === 'market_credentials_not_configured') { + this.setState({'flag': 'emptyCredentials'}); } return; }