FIX: scan qr when adding wallet

This commit is contained in:
Overtorment 2018-07-06 17:28:27 +01:00
parent 37c1de472f
commit eefb095a2c

View File

@ -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,
}),
};