From fed7ae91d9171d428c164eb409faad64bbf5dafb Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 9 Dec 2024 14:30:22 -0600 Subject: [PATCH] fix: frost reshare issue when initiator is a new participant of a 1/2 config --- .../frost_ms/reshare/frost_reshare_step_2abd.dart | 2 +- .../add_wallet_views/frost_ms/reshare/frost_reshare_step_4.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/add_wallet_views/frost_ms/reshare/frost_reshare_step_2abd.dart b/lib/pages/add_wallet_views/frost_ms/reshare/frost_reshare_step_2abd.dart index a95d8ec47..65c22e2f6 100644 --- a/lib/pages/add_wallet_views/frost_ms/reshare/frost_reshare_step_2abd.dart +++ b/lib/pages/add_wallet_views/frost_ms/reshare/frost_reshare_step_2abd.dart @@ -208,7 +208,7 @@ class _FrostReshareStep2abdState extends ConsumerState { label: "Continue", enabled: _userVerifyContinue && (amOutgoingParticipant || - !fieldIsEmptyFlags.reduce((v, e) => v |= e)), + !fieldIsEmptyFlags.fold(false, (v, e) => v || e)), onPressed: _onPressed, ), ], diff --git a/lib/pages/add_wallet_views/frost_ms/reshare/frost_reshare_step_4.dart b/lib/pages/add_wallet_views/frost_ms/reshare/frost_reshare_step_4.dart index f476c9096..41d94cdd1 100644 --- a/lib/pages/add_wallet_views/frost_ms/reshare/frost_reshare_step_4.dart +++ b/lib/pages/add_wallet_views/frost_ms/reshare/frost_reshare_step_4.dart @@ -238,7 +238,7 @@ class _FrostReshareStep4State extends ConsumerState { label: amOutgoingParticipant ? "Done" : "Complete", enabled: (amNewParticipant || _userVerifyContinue) && (amOutgoingParticipant || - !fieldIsEmptyFlags.reduce((v, e) => v |= e)), + !fieldIsEmptyFlags.fold(false, (v, e) => v || e)), onPressed: _onPressed, ), ],