Browse Source

jumblr deposit address toaster fix

v0.25
pbca26 8 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' '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, { this.setState(Object.assign({}, this.state, {
jumblrDepositAddress: { jumblrDepositAddress: {
address: _genKeys.address, address: _genKeys.address,
@ -367,9 +367,10 @@ class Jumblr extends React.Component {
})); }));
Store.dispatch( Store.dispatch(
triggerToaster( triggerToaster(
translate('TOASTR.JUMBLR_DEPOSIT_ADDRESS_SET'), translate('TOASTR.JUMBLR_DEPOSIT_ADDRESS_SET') + ' to ' + _genKeys.address,
'Jumblr', 'Jumblr',
'success' 'success',
false
) )
); );
} }

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

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

Loading…
Cancel
Save