Skip to content

Commit 21511b8

Browse files
authored
fix(cat-voices): hide close button on recovery success screen (#2302)
1 parent 9d00584 commit 21511b8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

catalyst_voices/apps/voices/lib/pages/registration/registration_dialog.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@ class _RegistrationDialogState extends State<RegistrationDialog>
5858
);
5959
},
6060
child: BlocSelector<RegistrationCubit, RegistrationState, bool>(
61-
selector: (state) => state.step is! AccountCompletedStep,
61+
selector: (state) {
62+
final isAccountCompleted = state.step is AccountCompletedStep;
63+
final isRecovered = state.step ==
64+
const RecoverWithSeedPhraseStep(
65+
stage: RecoverWithSeedPhraseStage.success,
66+
);
67+
68+
return !isAccountCompleted && !isRecovered;
69+
},
6270
builder: (context, showCloseButton) {
6371
return VoicesTwoPaneDialog(
6472
key: const Key('RegistrationDialog'),

0 commit comments

Comments
 (0)