diff --git a/src/components/Details/DetailsList.tsx b/src/components/Details/DetailsList.tsx index c76b4347..60471c40 100644 --- a/src/components/Details/DetailsList.tsx +++ b/src/components/Details/DetailsList.tsx @@ -365,12 +365,13 @@ const DetailsList = ({ data, copyProps }: DetailsCard) => { > {event?.txFees && formatFees(event)}{" "} - {event?.fromChain && currency[event?.fromChain]} ($ + {event?.createdWith === "v4" + ? event?.toChain && currency[event?.toChain] : event?.fromChain && currency[event?.fromChain]} ($ {event?.fromChain && ( getExchangeRate( exchangeRates, - event?.chainName + event?.createdWith === "v4" ? event?.toChainName : event?.chainName ) * formatFees(event) )?.toFixed(2)} ) diff --git a/src/components/ExplorerEvents.tsx b/src/components/ExplorerEvents.tsx index 96207481..f1a84474 100644 --- a/src/components/ExplorerEvents.tsx +++ b/src/components/ExplorerEvents.tsx @@ -48,7 +48,7 @@ export interface IEvent { fromChain?: string; toChain: string; fromChainName?: string; - toChainName?: string; + toChainName: string; actionId: string; txFees: string; tokenId?: string;