Browse Source

jumblr deposit address toaster fix

v0.25
pbca26 7 years ago
parent
commit
cbbabc3cc9
  1. 7
      react/src/components/dashboard/jumblr/jumblr.js
  2. 2
      react/src/components/dashboard/receiveCoin/receiveCoin.js

7
react/src/components/dashboard/jumblr/jumblr.js

@ -358,7 +358,7 @@ class Jumblr extends React.Component {
'error'
)
);
} else if (json.result && json.result.result === 0) {
} else if (json.result && (json.result.result === 0 || json.result.result === null)) {
this.setState(Object.assign({}, this.state, {
jumblrDepositAddress: {
address: _genKeys.address,
@ -367,9 +367,10 @@ class Jumblr extends React.Component {
}));
Store.dispatch(
triggerToaster(
translate('TOASTR.JUMBLR_DEPOSIT_ADDRESS_SET'),
translate('TOASTR.JUMBLR_DEPOSIT_ADDRESS_SET') + ' to ' + _genKeys.address,
'Jumblr',
'success'
'success',
false
)
);
}

2
react/src/components/dashboard/receiveCoin/receiveCoin.js

@ -126,7 +126,7 @@ class ReceiveCoin extends React.Component {
return items;
} else {
if (this.props.electrumCoins &&
if (this.props.electrumCoins && this.props.mode === 'spv' &&
type === 'public') {
let items = [];

Loading…
Cancel
Save