From 7bddf1e90d19daf7e10036746b780a5f8708e47c Mon Sep 17 00:00:00 2001 From: Miika Turunen Date: Fri, 8 Sep 2017 00:13:32 +0300 Subject: [PATCH] Fixed typo & reverted test condition clause --- react/src/actions/actions/settings.js | 6 +++--- react/src/components/dashboard/main/dashboard.render.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/react/src/actions/actions/settings.js b/react/src/actions/actions/settings.js index e530870..aa5afdb 100644 --- a/react/src/actions/actions/settings.js +++ b/react/src/actions/actions/settings.js @@ -52,7 +52,7 @@ function parseImportPrivKeyResponse(json, dispatch) { return dispatch => { dispatch( triggerToaster( - transalte('API.ILLEGAL_PRIVKEY'), + translate('API.ILLEGAL_PRIVKEY'), translate('TOASTR.SETTINGS_NOTIFICATION'), 'error' ) @@ -63,7 +63,7 @@ function parseImportPrivKeyResponse(json, dispatch) { return dispatch => { dispatch( triggerToaster( - transalte('API.PRIVKEY_IN_WALLET'), + translate('API.PRIVKEY_IN_WALLET'), translate('TOASTR.SETTINGS_NOTIFICATION'), 'warning' ) @@ -213,7 +213,7 @@ export function getPeersListState(json) { return { type: GET_PEERS_LIST, - supernetPeers: json && !json.error && json.supernet[0] ? json.supernet : null, + supernetPeers: json && json.supernet[0] ? json.supernet : null, rawPeers: peersList, } } diff --git a/react/src/components/dashboard/main/dashboard.render.js b/react/src/components/dashboard/main/dashboard.render.js index cb734fd..7ab2681 100644 --- a/react/src/components/dashboard/main/dashboard.render.js +++ b/react/src/components/dashboard/main/dashboard.render.js @@ -46,7 +46,7 @@ const DashboardRender = function() { } { this.isSectionActive('settings') && - + } { this.isSectionActive('about') &&