mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
fix: explicit check of exception
This commit is contained in:
parent
6ac15a71f4
commit
21b8f3f0ca
1 changed files with 10 additions and 3 deletions
|
@ -636,9 +636,16 @@ class _DesktopCashFusion extends ConsumerState<DesktopCashFusionView> {
|
|||
.getManager(widget.walletId)
|
||||
.wallet as FusionWalletInterface;
|
||||
|
||||
fusionWallet.uiState = ref.read(
|
||||
fusionProgressUIStateProvider(widget.walletId),
|
||||
);
|
||||
try {
|
||||
fusionWallet.uiState = ref.read(
|
||||
fusionProgressUIStateProvider(widget.walletId),
|
||||
);
|
||||
} catch (e) {
|
||||
if (!e.toString().contains(
|
||||
"FusionProgressUIState was already set for ${widget.walletId}")) {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
unawaited(fusionWallet.fuse());
|
||||
|
||||
|
|
Loading…
Reference in a new issue