Skip to content

Commit

Permalink
chore(explorer): fixed detailed page info for v4
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Oct 1, 2024
1 parent 9f23157 commit 1544d70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/Details/DetailsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,13 @@ const DetailsList = ({ data, copyProps }: DetailsCard) => {
>
<span className="text-[#222222]">
{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)}
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExplorerEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface IEvent {
fromChain?: string;
toChain: string;
fromChainName?: string;
toChainName?: string;
toChainName: string;
actionId: string;
txFees: string;
tokenId?: string;
Expand Down

0 comments on commit 1544d70

Please sign in to comment.