From 14197702a2a4f97810cc4d750afee9aa9d30c185 Mon Sep 17 00:00:00 2001 From: cpl121 <100352899+cpl121@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:11:44 +0100 Subject: [PATCH] fix(explorer): type format in object view (#4066) --- apps/explorer/src/pages/object-result/views/ObjectView.tsx | 3 ++- .../lib/components/molecules/display-stats/DisplayStats.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/explorer/src/pages/object-result/views/ObjectView.tsx b/apps/explorer/src/pages/object-result/views/ObjectView.tsx index d9c4f427ebc..087498cf6ef 100644 --- a/apps/explorer/src/pages/object-result/views/ObjectView.tsx +++ b/apps/explorer/src/pages/object-result/views/ObjectView.tsx @@ -8,6 +8,7 @@ import { type IotaObjectResponse, type ObjectOwner } from '@iota/iota-sdk/client import { formatAddress, formatDigest, + formatType, IOTA_TYPE_ARG, normalizeStructTag, parseStructTag, @@ -113,7 +114,7 @@ function TypeCard({ objectType }: TypeCardCardProps): JSX.Element { ...rest, }; - const normalizedStructTag = normalizeStructTag(structTag); + const normalizedStructTag = formatType(normalizeStructTag(structTag)); return ( {icon}}
- {value} + {value} {supportingLabel && ( {supportingLabel}