Skip to content

Commit

Permalink
fix: fix trx bug (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
JP authored Oct 26, 2023
1 parent 34ff701 commit 05ca4b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion centrifuge-app/src/components/Portfolio/Transactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from '@centrifuge/centrifuge-js'
import { formatBalance, useCentrifugeUtils } from '@centrifuge/centrifuge-react'
import { Box, Grid, IconExternalLink, Stack, Text } from '@centrifuge/fabric'
import { isAddress as isValidEVMAddress } from '@ethersproject/address'
import * as React from 'react'
import { Link } from 'react-router-dom'
import { formatDate } from '../../utils/date'
Expand Down Expand Up @@ -66,7 +67,7 @@ const formatters = {
export function Transactions({ count }: AddressTransactionsProps) {
const { formatAddress } = useCentrifugeUtils()
const address = useAddress()
const formattedAddress = formatAddress(address || '')
const formattedAddress = address && isValidEVMAddress(address) ? address : formatAddress(address || '')
const allTransactions = useAllTransactions(formattedAddress)
const formattedTransactions: TransactionCardProps[] = []

Expand Down

0 comments on commit 05ca4b9

Please sign in to comment.