Skip to content

Commit

Permalink
fix marinde token stats (solana-labs#1947)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 authored Nov 26, 2023
1 parent 20d0a1a commit d524dbe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pages/dao/[symbol]/token-stats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import useLegacyConnectionContext from '@hooks/useLegacyConnectionContext'
import { useRealmProposalsQuery } from '@hooks/queries/proposal'
import { useQuery } from '@tanstack/react-query'
import { IDL } from 'VoteStakeRegistry/sdk/voter_stake_registry'
import {ProfileImage, ProfileName} from "@components/Profile";
import { ProfileImage, ProfileName } from '@components/Profile'

const VestingVsTime = dynamic(
() => import('VoteStakeRegistry/components/LockTokenStats/VestingVsTime'),
Expand Down Expand Up @@ -445,7 +445,11 @@ const LockTokenStats = () => {
)
}
const renderAddressImage = (wallet) => (
<ProfileImage publicKey={new PublicKey(wallet)} expanded={false} className="h-6 text-fgd-3 w-6" />
<ProfileImage
publicKey={new PublicKey(wallet)}
expanded={false}
className="h-6 text-fgd-3 w-6"
/>
)

return (
Expand Down Expand Up @@ -539,7 +543,7 @@ const LockTokenStats = () => {
.reduce((acc, curr) => {
return acc.add(curr.vestingAmount)
}, new BN(0))
.toNumber(),
.toString(),
}
}),
]}
Expand Down

0 comments on commit d524dbe

Please sign in to comment.