File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
examples/wallet/app/pages Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,13 @@ export default ({ setKeysWithUnlockWalletPassword }: Props) => {
18
18
return setKeysWithUnlockWalletPassword ( unlockWalletPassword ) ;
19
19
} catch ( error ) {
20
20
setIsWrongUnlockWalletPassword ( true ) ;
21
- setHiddenUnlockWalletPassword ( false ) ;
22
21
}
23
22
} ;
24
23
25
24
const [ unlockWalletPassword , setUnlockWalletPassword ] = useState ( '' ) ;
26
25
const [ isWrongSpendingPassword , setIsWrongUnlockWalletPassword ] = useState (
27
26
false
28
27
) ;
29
- const [ hiddenSpendingPassword , setHiddenUnlockWalletPassword ] = useState (
30
- true
31
- ) ;
32
28
33
29
return (
34
30
< Container className = { styles . container } >
@@ -46,7 +42,7 @@ export default ({ setKeysWithUnlockWalletPassword }: Props) => {
46
42
isInvalid = { isWrongSpendingPassword }
47
43
onChange = { event => setUnlockWalletPassword ( event . target . value ) }
48
44
/>
49
- < Form . Label className = "text-danger" hidden = { hiddenSpendingPassword } >
45
+ < Form . Label className = "text-danger" hidden = { ! isWrongSpendingPassword } >
50
46
< code > Incorrect password</ code >
51
47
</ Form . Label >
52
48
</ Form . Group >
You can’t perform that action at this time.
0 commit comments