Skip to content

Commit

Permalink
Fix type warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrasinskis committed Aug 16, 2024
1 parent 10cf9ce commit 7e1cf6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/components/accounts/IcrcWalletPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down Expand Up @@ -288,7 +288,7 @@
</Popover>
{/if}

{#if removeImportedTokenConfirmtionVisible}
{#if removeImportedTokenConfirmtionVisible && nonNullish(ledgerCanisterId)}
<ImportTokenRemoveConfirmation
{ledgerCanisterId}
on:nnsClose={() => (removeImportedTokenConfirmtionVisible = false)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@
</svelte:fragment>

<div class="content">
{#if nonNullish(universe)}
<UniversePageSummary slot="start" {universe}>
<Tag slot="tags" testId="imported-token-tag"
>{$i18n.import_token.imported_token}</Tag
>
</UniversePageSummary>
{/if}
<svelte:fragment slot="start">
{#if nonNullish(universe)}
<UniversePageSummary {universe}>
<Tag slot="tags" testId="imported-token-tag"
>{$i18n.import_token.imported_token}</Tag
>
</UniversePageSummary>
{/if}
</svelte:fragment>
<p><Html text={$i18n.import_token.remove_confirmation_description} /></p>
</div>

Expand Down

0 comments on commit 7e1cf6b

Please sign in to comment.