Skip to content

Commit

Permalink
fix: show asset as unrecognized if so
Browse files Browse the repository at this point in the history
  • Loading branch information
CedrikNikita committed Feb 13, 2025
1 parent 129d24f commit b5ab264
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/composables/transactionData.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { computed, Ref } from 'vue';
import { Tag } from '@aeternity/aepp-sdk';
import { isEmpty } from 'lodash-es';

import type {
AccountAddress,
ITokenResolved,
Expand Down Expand Up @@ -115,7 +117,10 @@ export function useTransactionData({

const isNonTokenContract = computed(
(): boolean => (
!getProtocolAvailableTokens(protocol.value)[innerTx.value?.contractId]
(
!isEmpty(getProtocolAvailableTokens(protocol.value))
&& !getProtocolAvailableTokens(protocol.value)[innerTx.value?.contractId]
)
|| innerTxTag.value === Tag.ContractCreateTx
),
);
Expand Down

0 comments on commit b5ab264

Please sign in to comment.