mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
FIX: scan qr when adding wallet
This commit is contained in:
parent
37c1de472f
commit
eefb095a2c
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue