From 91bfdfdb3c12e63017ba5ca2b8a4f1a35e6486d7 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Mon, 11 Sep 2023 15:23:32 +0700 Subject: [PATCH] fix more info component --- src/components/SmartContract/MoreInfo.js | 2 +- .../VerifiedContract/VerifiedContract.js | 25 +++++++++++-------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/components/SmartContract/MoreInfo.js b/src/components/SmartContract/MoreInfo.js index cd9bd496..8c757f47 100644 --- a/src/components/SmartContract/MoreInfo.js +++ b/src/components/SmartContract/MoreInfo.js @@ -57,7 +57,7 @@ const MoreInfo = ({ data }) => {
Label
-
{isNil(data?.contract_name) ? "-" : data?.contract_name}
+
{isNil(data?.label) ? "-" : data?.label}
diff --git a/src/containers/VerifiedContract/VerifiedContract.js b/src/containers/VerifiedContract/VerifiedContract.js index dafd26ac..02533023 100644 --- a/src/containers/VerifiedContract/VerifiedContract.js +++ b/src/containers/VerifiedContract/VerifiedContract.js @@ -26,7 +26,7 @@ const VerifiedContract = () => { const address = params?.["address"]; const path = `${consts.API_CONTRACT_DEPLOY}${consts.PATH_CONTRACT.LIST}/${address}`; - const {data, loading, error, refetch: refetchSmartContract} = useGet({ + const { data, loading, error, refetch: refetchSmartContract } = useGet({ path: path, }); @@ -55,15 +55,20 @@ const VerifiedContract = () => {
- - + +
{tableSection}