Skip to content

Commit

Permalink
format token amount
Browse files Browse the repository at this point in the history
  • Loading branch information
vladjdk committed Oct 30, 2023
1 parent 9b33680 commit e1e8e0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/enterprise/src/pages/dao/TokenDaoTotalStakedPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { QueryDependant } from 'lib/query/components/QueryDependant';
import { Spinner } from 'lib/ui/Spinner';
import { toPercents } from 'lib/shared/utils/toPercents';
import { NumericStatistic } from 'lib/ui/NumericStatistic';
import { formatAmount } from 'lib/shared/utils/formatAmount';

export const TokenDaoTotalStakedPanel = () => {
const { address, dao_membership_contract } = useCurrentDao();
Expand All @@ -28,7 +29,7 @@ export const TokenDaoTotalStakedPanel = () => {
error={() => <Text>Failed to load</Text>}
success={(totalStaked) => (
<NumericStatistic
value={fromChainAmount(totalStaked.toString(), token?.decimals ?? 6)}
value={formatAmount(fromChainAmount(totalStaked.toString(), token?.decimals ?? 6))}
suffix={
<QueryDependant
data={token}
Expand Down

0 comments on commit e1e8e0a

Please sign in to comment.