From 3211f6283bef729891bf95782e9fbdded2ca7393 Mon Sep 17 00:00:00 2001 From: Mark Nardi Date: Wed, 21 Feb 2024 12:42:06 +0100 Subject: [PATCH] fix duplicated notifications --- packages/shared/src/lib/core/ledger/utils/handleLedgerError.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/shared/src/lib/core/ledger/utils/handleLedgerError.ts b/packages/shared/src/lib/core/ledger/utils/handleLedgerError.ts index a9e1c71a5d..8a71e4df4b 100644 --- a/packages/shared/src/lib/core/ledger/utils/handleLedgerError.ts +++ b/packages/shared/src/lib/core/ledger/utils/handleLedgerError.ts @@ -24,6 +24,7 @@ export function handleLedgerError(error: IError, resetConfirmationPropsOnDenial const ledgerError = deriveLedgerError(error?.error) if (!ledgerError || !(ledgerError in LEDGER_ERROR_LOCALES)) { handleGenericError(error) + return } const popupType = get(profileAuthPopup)?.id