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 5, 2023
1 parent 848997c commit 7824c8d
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 7824c8d

Please sign in to comment.