Skip to content

Commit

Permalink
feat: Upload SeedPhrase - fix recovery flow
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalheartxs committed Oct 17, 2024
1 parent d453e58 commit 21bc01a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class _SeedPhraseInputPanelState extends State<SeedPhraseInputPanel> {
await showUploadConfirmationDialog(
context,
onUploadSuccessful: (words) {
RegistrationCubit.of(context).recover.setSeedPhraseWords(words);
_controller.words = words;
},
);
}
Expand Down
8 changes: 8 additions & 0 deletions catalyst_voices/lib/widgets/text_field/seed_phrase_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ final class SeedPhraseFieldController
extends ValueNotifier<List<SeedPhraseWord>> {
SeedPhraseFieldController([super._value = const <SeedPhraseWord>[]]);

set words(List<SeedPhraseWord> words) {
value = words;
}

List<SeedPhraseWord> get words {
return value;
}

void clear() {
value = const [];
}
Expand Down

0 comments on commit 21bc01a

Please sign in to comment.