Skip to content

Commit

Permalink
fix: link wrong token address in transfer CardInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Oct 25, 2022
1 parent 5bb7fdf commit bfa36a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/Card/CardInfo/Components/Transfers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Transfers = ({ content }: { content: Content }) => {
>
<span className="padding-right-xs">For</span>
<span className="padding-right-xs">{content?.transfer.value}</span>
<Typography.LinkText href={LinkMaker.address(content?.transfer?.to)}>
<Typography.LinkText href={LinkMaker.token(content?.transfer?.tokenAddress)}>
{content?.transfer?.token}
</Typography.LinkText>
</span>
Expand Down
1 change: 1 addition & 0 deletions components/Card/CardInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type Content = {
to?: string
toText?: string
value?: number
tokenAddress?: string
token?: string
}
decode?: DecodeProps
Expand Down
1 change: 1 addition & 0 deletions views/transactions/hook/useConvertData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export default function useConvertData({ data }: { data: TransactionDetail }) {
ellipseBetweenText(transfer.toAddress, 6, 6)
),
value: Number(formatUnits(transfer.amount, transfer.decimals)),
tokenAddress: transfer.tokenContractAddress,
token: transfer.tokenSymbol
}
}
Expand Down

0 comments on commit bfa36a9

Please sign in to comment.