diff --git a/frontend/src/lib/components/accounts/IcrcWalletPage.svelte b/frontend/src/lib/components/accounts/IcrcWalletPage.svelte index 461356bd779..db22fd7c657 100644 --- a/frontend/src/lib/components/accounts/IcrcWalletPage.svelte +++ b/frontend/src/lib/components/accounts/IcrcWalletPage.svelte @@ -169,7 +169,7 @@ const importedTokens = $importedTokensStore.importedTokens ?? []; const { success } = await removeImportedTokens({ tokensToRemove: importedTokens.filter( - ({ ledgerCanisterId: id }) => id.toText() === ledgerCanisterId.toText() + ({ ledgerCanisterId: id }) => id.toText() === ledgerCanisterId?.toText() ), importedTokens, }); @@ -288,7 +288,7 @@ {/if} - {#if removeImportedTokenConfirmtionVisible} + {#if removeImportedTokenConfirmtionVisible && nonNullish(ledgerCanisterId)} (removeImportedTokenConfirmtionVisible = false)} diff --git a/frontend/src/lib/components/accounts/ImportTokenRemoveConfirmation.svelte b/frontend/src/lib/components/accounts/ImportTokenRemoveConfirmation.svelte index b1a7e0db1cf..56090e69f94 100644 --- a/frontend/src/lib/components/accounts/ImportTokenRemoveConfirmation.svelte +++ b/frontend/src/lib/components/accounts/ImportTokenRemoveConfirmation.svelte @@ -29,13 +29,15 @@
- {#if nonNullish(universe)} - - {$i18n.import_token.imported_token} - - {/if} + + {#if nonNullish(universe)} + + {$i18n.import_token.imported_token} + + {/if} +