Skip to content

Commit 25f5351

Browse files
committed
fix: don't display contract id if it's not present
1 parent 54f5e94 commit 25f5351

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/popup/components/TransactionDetailsBase.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<slot name="tip-url" />
5454

5555
<DetailsItem
56-
v-if="contractId"
56+
v-if="contractId && isContract(contractId)"
5757
:label="$t('common.smartContract')"
5858
small
5959
>
@@ -236,6 +236,7 @@ import {
236236
formatTime,
237237
splitAddress,
238238
} from '@/utils';
239+
import { isContract } from '@/protocols/aeternity/helpers';
239240
240241
import TransactionOverview from '@/popup/components/TransactionOverview.vue';
241242
import SwapRoute from '@/popup/components/SwapRoute.vue';
@@ -302,6 +303,7 @@ export default defineComponent({
302303
formatDate,
303304
formatTime,
304305
splitAddress,
306+
isContract,
305307
}),
306308
});
307309
</script>

0 commit comments

Comments
 (0)