mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: scan qr when adding wallet
This commit is contained in:
parent
37c1de472f
commit
eefb095a2c
@ -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…
Reference in New Issue
Block a user