Skip to content

Commit 860abd3

Browse files
feat: debug pre fill seed phrase words (#922)
1 parent 07b6d96 commit 860abd3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

catalyst_voices/lib/pages/registration/create_keychain/stage/seed_phrase_check_panel.dart

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ class _SeedPhraseCheckPanelState extends State<SeedPhraseCheckPanel> {
3838
super.initState();
3939

4040
_updateSeedPhraseWords();
41-
_updateUserWords();
41+
// Note. In debug mode we're prefilling correct seed phrase words
42+
// so its faster to test screens
43+
_updateUserWords(kDebugMode ? _seedPhraseWords : const []);
4244
}
4345

4446
@override
@@ -47,7 +49,9 @@ class _SeedPhraseCheckPanelState extends State<SeedPhraseCheckPanel> {
4749

4850
if (widget.seedPhrase != oldWidget.seedPhrase) {
4951
_updateSeedPhraseWords();
50-
_updateUserWords();
52+
// Note. In debug mode we're prefilling correct seed phrase words
53+
// so its faster to test screens
54+
_updateUserWords(kDebugMode ? _seedPhraseWords : const []);
5155
}
5256
}
5357

0 commit comments

Comments
 (0)