Skip to content

Commit fe90ea2

Browse files
authored
fix: [lw-12705] clear error states on confirm modal close in dapp popup (#1842)
1 parent e3fc0a8 commit fe90ea2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/nami/src/ui/app/pages/dapp-connector/signData.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export const SignData = ({ dappConnector, account }: Readonly<Props>) => {
265265
}
266266
}}
267267
onCloseBtn={() => {
268+
setError('');
268269
capture(Events.DappConnectorDappDataCancelClick);
269270
}}
270271
onConfirm={async status => {

packages/nami/src/ui/app/pages/dapp-connector/signTx.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ export const SignTx = ({
621621
openHWFlow={openHWFlow}
622622
walletType={walletType}
623623
onCloseBtn={() => {
624+
setIsLoading(l => ({ ...l, error: '' }));
624625
capture(Events.DappConnectorDappTxCancelClick);
625626
}}
626627
secretsUtil={secretsUtil}

0 commit comments

Comments
 (0)