Browse Source

spv wrong wif format login/export error

v0.25
pbca26 7 years ago
parent
commit
aba4fbf404
  1. 16
      react/src/actions/actions/addCoin.js
  2. 2
      react/src/components/dashboard/settings/settings.exportKeysPanel.js
  3. 2
      react/src/translate/en.js

16
react/src/actions/actions/addCoin.js

@ -70,12 +70,22 @@ export function shepherdElectrumAuth(seed) {
'Error',
'error'
)
)
);
})
.then(response => response.json())
.then(json => {
dispatch(activeHandle());
dispatch(shepherdElectrumCoins());
if (json.msg !== 'error') {
dispatch(activeHandle());
dispatch(shepherdElectrumCoins());
} else {
dispatch(
triggerToaster(
'Icorrect WIF key format',
'Error',
'error'
)
);
}
});
}
}

2
react/src/components/dashboard/settings/settings.exportKeysPanel.js

@ -43,7 +43,7 @@ class ExportKeysPanel extends React.Component {
if (keys === 'error') {
Store.dispatch(
triggerToaster(
translate('SETTINGS.WRONG_PASSPHRASE'),
translate('SETTINGS.WRONG_PASSPHRASE') + ' or WIF key format',
translate('TOASTR.WALLET_NOTIFICATION'),
'error'
)

2
react/src/translate/en.js

@ -680,7 +680,7 @@ export const LANG_EN = {
'BIP39_DESC_P1': 'Description: the form below is going to search for a pub key depending on a range of key path combinations is chosen (No of accounts * account address path depth).',
'BIP39_DESC_P2': 'The app might temporary freeze for several seconds during search procedure.',
'SHOW_APP_RUNTIME_LOG': 'Show app runtime log',
'WRONG_PASSPHRASE': 'Wrong passphrase!',
'WRONG_PASSPHRASE': 'Wrong passphrase',
'SPV_SERVER_LIST_DESC': 'Server list selection is only available for active coins that have more than 1 server to connect to.',
'SPV_SERVERS': 'SPV servers list',
'SPV_SINGLE_SERVER_NOTICE': 'There is only one electrum server available. SPV verification is coming from the same server providing all remote data.',

Loading…
Cancel
Save