From 63ae9784bc90a120e1158bca2cd453238da78555 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:47:07 +0100 Subject: [PATCH] Show "None" when funds empty in Tx detail --- .../TransactionInfo/TxMsgCreateVestingAccountDetails.tsx | 2 +- .../dataViews/TransactionInfo/TxMsgExecuteContractDetails.tsx | 2 +- .../TransactionInfo/TxMsgInstantiateContract2Details.tsx | 2 +- .../TransactionInfo/TxMsgInstantiateContractDetails.tsx | 2 +- components/dataViews/TransactionInfo/TxMsgSendDetails.tsx | 2 +- components/dataViews/TransactionInfo/index.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/dataViews/TransactionInfo/TxMsgCreateVestingAccountDetails.tsx b/components/dataViews/TransactionInfo/TxMsgCreateVestingAccountDetails.tsx index 18efc7a..ba90256 100644 --- a/components/dataViews/TransactionInfo/TxMsgCreateVestingAccountDetails.tsx +++ b/components/dataViews/TransactionInfo/TxMsgCreateVestingAccountDetails.tsx @@ -20,7 +20,7 @@ const TxMsgCreateVestingAccountDetails = ({ msgValue }: TxMsgCreateVestingAccoun
  • -
    {printableCoins(msgValue.amount, chain)}
    +
    {printableCoins(msgValue.amount, chain) || "None"}
  • diff --git a/components/dataViews/TransactionInfo/TxMsgExecuteContractDetails.tsx b/components/dataViews/TransactionInfo/TxMsgExecuteContractDetails.tsx index e1dee34..97ede4d 100644 --- a/components/dataViews/TransactionInfo/TxMsgExecuteContractDetails.tsx +++ b/components/dataViews/TransactionInfo/TxMsgExecuteContractDetails.tsx @@ -43,7 +43,7 @@ const TxMsgExecuteContractDetails = ({ msgValue }: TxMsgExecuteContractDetailsPr
  • -
    {printableCoins(msgValue.funds, chain)}
    +
    {printableCoins(msgValue.funds, chain) || "None"}
  • {parseError ? (
  • diff --git a/components/dataViews/TransactionInfo/TxMsgInstantiateContract2Details.tsx b/components/dataViews/TransactionInfo/TxMsgInstantiateContract2Details.tsx index aad8c31..39dfc53 100644 --- a/components/dataViews/TransactionInfo/TxMsgInstantiateContract2Details.tsx +++ b/components/dataViews/TransactionInfo/TxMsgInstantiateContract2Details.tsx @@ -59,7 +59,7 @@ const TxMsgInstantiateContract2Details = ({ msgValue }: TxMsgInstantiateContract
  • -
    {printableCoins(msgValue.funds, chain)}
    +
    {printableCoins(msgValue.funds, chain) || "None"}
  • {parseError ? (
  • diff --git a/components/dataViews/TransactionInfo/TxMsgInstantiateContractDetails.tsx b/components/dataViews/TransactionInfo/TxMsgInstantiateContractDetails.tsx index 3ad54de..105a3eb 100644 --- a/components/dataViews/TransactionInfo/TxMsgInstantiateContractDetails.tsx +++ b/components/dataViews/TransactionInfo/TxMsgInstantiateContractDetails.tsx @@ -55,7 +55,7 @@ const TxMsgInstantiateContractDetails = ({ msgValue }: TxMsgInstantiateContractD
  • -
    {printableCoins(msgValue.funds, chain)}
    +
    {printableCoins(msgValue.funds, chain) || "None"}
  • {parseError ? (
  • diff --git a/components/dataViews/TransactionInfo/TxMsgSendDetails.tsx b/components/dataViews/TransactionInfo/TxMsgSendDetails.tsx index 8a1561f..fda8231 100644 --- a/components/dataViews/TransactionInfo/TxMsgSendDetails.tsx +++ b/components/dataViews/TransactionInfo/TxMsgSendDetails.tsx @@ -17,7 +17,7 @@ const TxMsgSendDetails = ({ msgValue }: TxMsgSendDetailsProps) => {
  • -
    {printableCoins(msgValue.amount, chain)}
    +
    {printableCoins(msgValue.amount, chain) || "None"}
  • diff --git a/components/dataViews/TransactionInfo/index.tsx b/components/dataViews/TransactionInfo/index.tsx index 0819661..e0a959b 100644 --- a/components/dataViews/TransactionInfo/index.tsx +++ b/components/dataViews/TransactionInfo/index.tsx @@ -68,7 +68,7 @@ const TransactionInfo = ({ tx }: TransactionInfoProps) => {
  • -
    {printableCoins(tx.fee.amount, chain)}
    +
    {printableCoins(tx.fee.amount, chain) || "None"}
  • ) : null}