File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
apps/browser-extension-wallet/src/features/dapp/components Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,18 @@ export const SignData = (): React.ReactElement => {
48
48
return ! password ;
49
49
} , [ request , password ] ) ;
50
50
51
+ const handleSubmit = useCallback (
52
+ ( event ) => {
53
+ event . preventDefault ( ) ;
54
+ event . stopPropagation ( ) ;
55
+
56
+ if ( ! confirmIsDisabled ) {
57
+ onConfirm ( ) ;
58
+ }
59
+ } ,
60
+ [ onConfirm , confirmIsDisabled ]
61
+ ) ;
62
+
51
63
return (
52
64
< Layout title = { undefined } >
53
65
< div className = { styles . passwordContainer } >
@@ -57,6 +69,7 @@ export const SignData = (): React.ReactElement => {
57
69
</ h5 >
58
70
< Password
59
71
onChange = { handleChange }
72
+ onSubmit = { handleSubmit }
60
73
error = { validPassword === false }
61
74
errorMessage = { t ( 'browserView.transaction.send.error.invalidPassword' ) }
62
75
/>
You can’t perform that action at this time.
0 commit comments