Skip to content

Commit

Permalink
Display confirmedBlocks as target chain tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed May 17, 2024
1 parent fa24fde commit a6b2f20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/history/history-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
parseConfirmedBlocks,
toShortAdrress,
} from "../../utils";
import { Hash, Hex } from "viem";
import { Hash, Hex, isHash } from "viem";
import Completed from "../icons/completed";
import Pending from "../icons/pending";
import { useHistoryDtails } from "../../hooks";
Expand Down Expand Up @@ -50,7 +50,10 @@ export default function HistoryDetails({ defaultData, requestTxHash }: Props) {
<div className="mt-8 flex justify-between rounded-3xl bg-white/5 px-14 py-10">
<Column chain={sourceChain} tx={data?.requestTxHash} />
<Bridge data={data} />
<Column chain={targetChain} tx={data?.responseTxHash} />
<Column
chain={targetChain}
tx={isHash(data?.confirmedBlocks ?? "") ? (data?.confirmedBlocks as Hash) : data?.responseTxHash}
/>
</div>

{data && (
Expand Down

0 comments on commit a6b2f20

Please sign in to comment.