diff --git a/nym-wallet/src/components/textfields.tsx b/nym-wallet/src/components/textfields.tsx index 085ede1ab3..1b0224c134 100644 --- a/nym-wallet/src/components/textfields.tsx +++ b/nym-wallet/src/components/textfields.tsx @@ -10,17 +10,17 @@ export const MnemonicInput: React.FC<{ error?: string; onUpdateMnemonic: (mnemonic: string) => void; }> = ({ mnemonic, error, onUpdateMnemonic }) => { - const [showPassword, setShowPassword] = useState(false); + const [showMnemonic, setShowMnemonic] = useState(false); return ( onUpdateMnemonic(e.target.value)} - multiline autoFocus fullWidth + multiline={showMnemonic} inputProps={{ style: { height: '160px', @@ -34,7 +34,7 @@ export const MnemonicInput: React.FC<{ }} /> setShowPassword((show) => !show)} />} + control={ setShowMnemonic((show) => !show)} />} label="Reveal my mnemonic" /> {error && }