From 732610ddaae793fd2bdbe7cd7f6f8a10e50f6321 Mon Sep 17 00:00:00 2001 From: jinoosss <112360739+jinoosss@users.noreply.github.com> Date: Mon, 31 Jul 2023 16:42:55 +0900 Subject: [PATCH] fix: Fix transaction details (#78) --- src/pages/transactions/details.tsx | 49 +++++++++--------------------- 1 file changed, 14 insertions(+), 35 deletions(-) diff --git a/src/pages/transactions/details.tsx b/src/pages/transactions/details.tsx index 92882f89..bfa1fa10 100644 --- a/src/pages/transactions/details.tsx +++ b/src/pages/transactions/details.tsx @@ -278,41 +278,20 @@ const CallerContract = ({contract, desktop}: any) => { const AddPkgContract = ({contract, desktop}: any) => { return ( - <> - {Object.keys(contract.args.data).map(v => ( - -
{v}
-
- - {v === 'Creator' ? ( - - - - {contract.args.data[v] || '-'} - - - - ) : v === 'Path' ? ( - - - - {contract.args.data[v] || '-'} - - - - ) : ( - - {contract.args.data[v] || '-'} - - )} - -
-
- ))} - + +
Creator
+
+ + + + + {contract?.args?.data?.Creator || '-'} + + + + +
+
); };