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 @@ -65,6 +65,18 @@ export const SignTransaction = (): React.ReactElement => {
65
65
setPreviousView ( ) ;
66
66
} ;
67
67
68
+ const handleSubmit = useCallback (
69
+ ( event ) => {
70
+ event . preventDefault ( ) ;
71
+ event . stopPropagation ( ) ;
72
+
73
+ if ( ! confirmIsDisabled ) {
74
+ onConfirm ( ) ;
75
+ }
76
+ } ,
77
+ [ onConfirm , confirmIsDisabled ]
78
+ ) ;
79
+
68
80
return (
69
81
< Layout title = { undefined } >
70
82
< div className = { styles . passwordContainer } >
@@ -74,6 +86,7 @@ export const SignTransaction = (): React.ReactElement => {
74
86
</ h5 >
75
87
< Password
76
88
onChange = { handleChange }
89
+ onSubmit = { handleSubmit }
77
90
error = { validPassword === false }
78
91
errorMessage = { t ( 'browserView.transaction.send.error.invalidPassword' ) }
79
92
autoFocus
You can’t perform that action at this time.
0 commit comments