diff options
Diffstat (limited to 'cmd/web')
-rw-r--r-- | cmd/web/js/poloniex.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/web/js/poloniex.jsx b/cmd/web/js/poloniex.jsx index 482dbb6..813a506 100644 --- a/cmd/web/js/poloniex.jsx +++ b/cmd/web/js/poloniex.jsx | |||
@@ -32,6 +32,8 @@ class PoloniexController extends React.Component { | |||
32 | console.error(err, data); | 32 | console.error(err, data); |
33 | if (err.code === 'invalid_market_credentials') { | 33 | if (err.code === 'invalid_market_credentials') { |
34 | this.setState({'flag': 'invalidCredentials', 'valueCurrency': null, 'balanceValue': null, 'balance': null}); | 34 | this.setState({'flag': 'invalidCredentials', 'valueCurrency': null, 'balanceValue': null, 'balance': null}); |
35 | } else if (err.code === 'ip_restricted_api_key') { | ||
36 | this.setState({'flag': 'ipRestricted', 'valueCurrency': null, 'balanceValue': null, 'balance': null}); | ||
35 | } | 37 | } |
36 | return; | 38 | return; |
37 | } | 39 | } |
@@ -68,6 +70,9 @@ class PoloniexController extends React.Component { | |||
68 | case 'invalidCredentials': | 70 | case 'invalidCredentials': |
69 | displayText = 'Invalid poloniex credentials'; | 71 | displayText = 'Invalid poloniex credentials'; |
70 | break; | 72 | break; |
73 | case 'ipRestricted': | ||
74 | displayText = 'Your API key is IP restricted. Please whitelist us.'; | ||
75 | break; | ||
71 | case 'emptyCredentials': | 76 | case 'emptyCredentials': |
72 | displayText = 'Please provide poloniex credentials'; | 77 | displayText = 'Please provide poloniex credentials'; |
73 | break; | 78 | break; |