FIX: fetch wallet transaction after broadcast

This commit is contained in:
Overtorment 2020-12-03 16:31:31 +00:00
parent 674f6999f3
commit 4a41ba6a99

View File

@ -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,