Browse Source

FIX: scan qr when adding wallet

localNotifications
Overtorment 6 years ago
parent
commit
eefb095a2c
  1. 5
      screen/wallets/scanQrWif.js

5
screen/wallets/scanQrWif.js

@ -115,6 +115,8 @@ export default class ScanQrWif extends React.Component {
newLegacyWallet.getAddress(),
);
} else {
await newWallet.fetchBalance();
await newWallet.fetchTransactions();
newWallet.setLabel(loc.wallets.scanQrWif.imported_segwit);
BlueApp.wallets.push(newWallet);
alert(
@ -125,7 +127,7 @@ export default class ScanQrWif extends React.Component {
);
}
await BlueApp.saveToDisk();
this.props.navigation.navigate('WalletsList');
this.props.navigation.popToTop();
setTimeout(() => EV(EV.enum.WALLETS_COUNT_CHANGED), 500);
} // end
@ -230,6 +232,7 @@ export default class ScanQrWif extends React.Component {
ScanQrWif.propTypes = {
navigation: PropTypes.shape({
goBack: PropTypes.func,
popToTop: PropTypes.func,
navigate: PropTypes.func,
}),
};

Loading…
Cancel
Save