From f2bdb32463686f7e1abe529dfd6bc6db22c11ee8 Mon Sep 17 00:00:00 2001 From: Omar Hatem Date: Thu, 2 Jan 2025 00:14:00 +0200 Subject: [PATCH] Fix Mobx issue (#1922) --- cw_bitcoin/lib/electrum_wallet_addresses.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cw_bitcoin/lib/electrum_wallet_addresses.dart b/cw_bitcoin/lib/electrum_wallet_addresses.dart index 6774a5036..13a32c68c 100644 --- a/cw_bitcoin/lib/electrum_wallet_addresses.dart +++ b/cw_bitcoin/lib/electrum_wallet_addresses.dart @@ -349,8 +349,10 @@ abstract class ElectrumWalletAddressesBase extends WalletAddresses with Store { type: addressPageType, network: network, ); - _addresses.add(address); - Future.delayed(Duration.zero, () => updateAddressesByMatch()); + Future.delayed(Duration.zero, () { + _addresses.add(address); + updateAddressesByMatch(); + }); return address; }