mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 02:09:10 +01:00
FIX: fetch wallet transaction after broadcast
This commit is contained in:
parent
674f6999f3
commit
4a41ba6a99
@ -91,14 +91,15 @@ export default class Confirm extends Component {
|
||||
|
||||
amount = formatBalanceWithoutSuffix(amount, BitcoinUnit.BTC, false);
|
||||
|
||||
this.context.fetchAndSaveWalletTransactions(this.state.fromWallet.getID());
|
||||
this.props.navigation.navigate('Success', {
|
||||
fee: Number(this.state.fee),
|
||||
amount,
|
||||
dismissModal: () => this.props.navigation.dangerouslyGetParent().pop(),
|
||||
});
|
||||
|
||||
this.setState({ isLoading: false });
|
||||
|
||||
await new Promise(resolve => setTimeout(resolve, 3000)); // sleep to make sure network propagates
|
||||
this.context.fetchAndSaveWalletTransactions(this.state.fromWallet.getID());
|
||||
} catch (error) {
|
||||
ReactNativeHapticFeedback.trigger('notificationError', {
|
||||
ignoreAndroidSystemSettings: false,
|
||||
|
Loading…
Reference in New Issue
Block a user