We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d00584 commit 21511b8Copy full SHA for 21511b8
catalyst_voices/apps/voices/lib/pages/registration/registration_dialog.dart
@@ -58,7 +58,15 @@ class _RegistrationDialogState extends State<RegistrationDialog>
58
);
59
},
60
child: BlocSelector<RegistrationCubit, RegistrationState, bool>(
61
- selector: (state) => state.step is! AccountCompletedStep,
+ 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
+ },
70
builder: (context, showCloseButton) {
71
return VoicesTwoPaneDialog(
72
key: const Key('RegistrationDialog'),
0 commit comments