Skip to content

Commit a769e0c

Browse files
authored
fix: fix on submit event handler in dapp popup for nami mode [lw-12673] (#1833)
1 parent 05d745d commit a769e0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/nami/src/ui/app/components/confirmModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ const ConfirmModalNormal = ({
202202
onChange={secretsUtil.setPassword}
203203
label="Enter password"
204204
errorMessage={errorMessage}
205-
onSubmit={async () => await confirmHandler()}
205+
onSubmit={async (event) => {
206+
event.preventDefault();
207+
await confirmHandler();
208+
}}
206209
/>
207210
</ModalBody>
208211

0 commit comments

Comments
 (0)