fix: frost reshare issue when initiator is a new participant of a 1/2 config

This commit is contained in:
julian 2024-12-09 14:30:22 -06:00 committed by julian-CStack
parent e9252a4d46
commit fed7ae91d9
2 changed files with 2 additions and 2 deletions

View file

@ -208,7 +208,7 @@ class _FrostReshareStep2abdState extends ConsumerState<FrostReshareStep2abd> {
label: "Continue",
enabled: _userVerifyContinue &&
(amOutgoingParticipant ||
!fieldIsEmptyFlags.reduce((v, e) => v |= e)),
!fieldIsEmptyFlags.fold(false, (v, e) => v || e)),
onPressed: _onPressed,
),
],

View file

@ -238,7 +238,7 @@ class _FrostReshareStep4State extends ConsumerState<FrostReshareStep4> {
label: amOutgoingParticipant ? "Done" : "Complete",
enabled: (amNewParticipant || _userVerifyContinue) &&
(amOutgoingParticipant ||
!fieldIsEmptyFlags.reduce((v, e) => v |= e)),
!fieldIsEmptyFlags.fold(false, (v, e) => v || e)),
onPressed: _onPressed,
),
],