Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
klepi21 committed Oct 19, 2023
1 parent 56fd9b4 commit c182885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Home/components/ExistingUser/ExistingUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function ExistingUser({ address, email, secretWords, userGid }: { address: strin

useEffect(() => {
// Make the API call to fetch balance
fetch(`https://api.multiversx.com/accounts/${address}`)
fetch(`https://devnet-api.multiversx.com/accounts/${address}`)
.then((response) => response.json())
.then((data) => {
// Update the balance state with the data from the API response
Expand All @@ -90,7 +90,7 @@ function ExistingUser({ address, email, secretWords, userGid }: { address: strin
<Flex justifyContent="space-between" alignItems="center">
<VStack alignItems="start" spacing={2}>
<Text fontSize="lg" color="gray.400">Overview</Text>
<Text fontSize="2xl" color="white">{balance} EGLD</Text>
<Text fontSize="2xl" color="white">{balance}/Math.pow(10, 18) EGLD</Text>
<HStack justifyContent="space-between">
<Text fontSize="md" color="gray.400">$835.39 USD</Text>
{/* Add other details like percentage change here */}
Expand Down

0 comments on commit c182885

Please sign in to comment.