From 1903eb58862e861f118aa66c74ea69578d8963a6 Mon Sep 17 00:00:00 2001 From: Mark Nardi Date: Mon, 4 Sep 2023 12:21:41 +0200 Subject: [PATCH] fix alias tile --- .../src/components/molecules/TransactionAssetSection.svelte | 2 +- .../src/lib/core/activity/utils/getTransactionAssets.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/components/molecules/TransactionAssetSection.svelte b/packages/shared/src/components/molecules/TransactionAssetSection.svelte index 2372776f77..b95af3dbab 100644 --- a/packages/shared/src/components/molecules/TransactionAssetSection.svelte +++ b/packages/shared/src/components/molecules/TransactionAssetSection.svelte @@ -12,7 +12,7 @@ $: hasBaseCoinAmount = Number(baseCoinTransfer?.rawAmount) > 0 -{#if baseCoinTransfer || tokenTransfer || nft} +{#if baseCoinTransfer || tokenTransfer || nft || aliasId} {#if tokenTransfer?.token} diff --git a/packages/shared/src/lib/core/activity/utils/getTransactionAssets.ts b/packages/shared/src/lib/core/activity/utils/getTransactionAssets.ts index 4aa8960fb1..1ce6c58495 100644 --- a/packages/shared/src/lib/core/activity/utils/getTransactionAssets.ts +++ b/packages/shared/src/lib/core/activity/utils/getTransactionAssets.ts @@ -73,5 +73,9 @@ export function getTransactionAssets( token: baseCoin, }, } + } else if (activity.type === ActivityType.Alias) { + return { + aliasId: activity.aliasId, + } } }