disable 14 word seed passphrase (not supported in wownero-seed)

fix: Getting grayed screen on latest passphrase build after having restored a 14-word wownero seed (+passphrase) and attempting to restore a XMR seed, legacy or otherwise.
This commit is contained in:
Czarek Nakamoto 2024-07-28 20:35:43 +02:00
parent 6efe196ffe
commit 3ef843e837

View file

@ -156,7 +156,7 @@ class WalletRestoreFromSeedFormState extends State<WalletRestoreFromSeedForm> {
items: _getItems(),
selectedAtIndex: isPolyseed
? 1
: seedTypeController.value.text.contains("14")
: seedTypeController.value.text.contains("14") && widget.type == WalletType.wownero
? 2
: 0,
mainAxisAlignment: MainAxisAlignment.start,
@ -209,7 +209,7 @@ class WalletRestoreFromSeedFormState extends State<WalletRestoreFromSeedForm> {
hasDatePicker: widget.type == WalletType.monero || widget.type == WalletType.wownero,
walletType: widget.type,
),
if (widget.displayPassphrase) ...[
if (widget.displayPassphrase && !seedTypeController.value.text.contains("14")) ...[
const SizedBox(height: 10),
BaseTextFormField(
hintText: S.current.passphrase,