Skip to content

Commit

Permalink
Merge pull request #214 from AmbireTech/development
Browse files Browse the repository at this point in the history
v0.69.9
  • Loading branch information
ivopaunov authored Jul 10, 2024
2 parents 20c1948 + 436a933 commit 105de64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adex-interface",
"version": "0.69.8",
"version": "0.69.9",
"private": true,
"dependencies": {
"@ambire/login-sdk-core": "^0.0.21",
Expand Down
9 changes: 8 additions & 1 deletion src/components/AdminPanel/Accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ const AdminAnalytics = () => {
}, [adexServicesRequest])

const data = useMemo(() => {
if (!accounts.length) {
return {
elements: [],
totalDeposits: 0,
totalCampaignsLocked: 0
}
}
// TODO: fix this when multy token
const decimals = accounts[0].balanceToken.decimals
const decimals = accounts[0]?.balanceToken?.decimals
const totalDeposits = parseBigNumTokenAmountToDecimal(
accounts?.reduce((sum, a) => sum + BigInt(a.fundsDeposited.total), 0n),
decimals
Expand Down

0 comments on commit 105de64

Please sign in to comment.