diff --git a/catalyst_voices/lib/pages/registration/recover/seed_phrase/seed_phrase_input_panel.dart b/catalyst_voices/lib/pages/registration/recover/seed_phrase/seed_phrase_input_panel.dart index 435336f383d..f53d5463851 100644 --- a/catalyst_voices/lib/pages/registration/recover/seed_phrase/seed_phrase_input_panel.dart +++ b/catalyst_voices/lib/pages/registration/recover/seed_phrase/seed_phrase_input_panel.dart @@ -82,7 +82,7 @@ class _SeedPhraseInputPanelState extends State { await showUploadConfirmationDialog( context, onUploadSuccessful: (words) { - RegistrationCubit.of(context).recover.setSeedPhraseWords(words); + _controller.words = words; }, ); } diff --git a/catalyst_voices/lib/widgets/text_field/seed_phrase_field.dart b/catalyst_voices/lib/widgets/text_field/seed_phrase_field.dart index 524f22b3655..22319666c03 100644 --- a/catalyst_voices/lib/widgets/text_field/seed_phrase_field.dart +++ b/catalyst_voices/lib/widgets/text_field/seed_phrase_field.dart @@ -12,6 +12,14 @@ final class SeedPhraseFieldController extends ValueNotifier> { SeedPhraseFieldController([super._value = const []]); + set words(List words) { + value = words; + } + + List get words { + return value; + } + void clear() { value = const []; }