Skip to content

Commit

Permalink
Merge pull request #186 from chain4travel/suite
Browse files Browse the repository at this point in the history
Enhancements and Fixes: Routing Paths, Wallet Components, and Address Checksum
  • Loading branch information
aeddaqqa authored Jul 16, 2024
2 parents c78054d + ee56591 commit d1c5b10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/pages/XChainPages/Address/XAddressDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import TabPanel from 'app/components/TabComponent/TabPanel'
import TabsHeader from 'app/components/TabComponent/TabsHeader'
import XPAddressView from './XPAddressView'
import axios from 'axios'
import { getBaseUrl } from 'api/utils'
import { getBaseUrl, getChainID } from 'api/utils'
import { mdiFileDocumentOutline } from '@mdi/js'
import { useLocation } from 'react-router-dom'

Expand Down Expand Up @@ -56,7 +56,11 @@ export default function XAddressDetail() {
async function loadBalances(address: string | undefined) {
const assets = await loadAssets()
const addressInfo = await (
await axios.get(`${getBaseUrl()}${addressesApi}/${address}`)
await axios.get(
`${getBaseUrl()}${addressesApi}/${address}?chainID=${getChainID(
getAddressFromUrl()[0].toLowerCase(),
)}`,
)
).data
const addressBalances: AddressBalance[] = []
if (addressInfo && addressInfo.assets) {
Expand Down

0 comments on commit d1c5b10

Please sign in to comment.