Skip to content

Commit

Permalink
handle for evm address
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Angelle committed Oct 4, 2023
1 parent 7d2c2c9 commit 19e1082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centrifuge-app/src/components/Portfolio/Transactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@centrifuge/centrifuge-js'
import { formatBalance, useCentrifugeUtils } from '@centrifuge/centrifuge-react'
import { Box, Grid, IconExternalLink, Stack, Text } from '@centrifuge/fabric'
import * as React from 'react'
import { isAddress as isValidEVMAddress } from '@ethersproject/address'
import { Link } from 'react-router-dom'
import { formatDate } from '../../utils/date'
import { useAddress } from '../../utils/useAddress'
Expand Down Expand Up @@ -66,7 +66,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 19e1082

Please sign in to comment.