]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/commitdiff
Fix message on empty credentials. v0.0.12
authorjloup <jloup@jloup.work>
Sun, 13 May 2018 14:20:50 +0000 (15:20 +0100)
committerjloup <jloup@jloup.work>
Sun, 13 May 2018 14:20:50 +0000 (15:20 +0100)
cmd/web/js/poloniex.jsx

index 6019ef8cb59402ac143e1fdc4cf9d1668360b7fa..b28bc26a7b39f4dd78c252aa804573b5c89766fb 100644 (file)
@@ -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;
       }