Skip to content

Commit

Permalink
fix: formatting (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt authored Sep 6, 2023
1 parent 2a73ce6 commit d21ddf6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/Dashboard/cards/OracleStatusCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import clsx from 'clsx';
import { withErrorBoundary } from 'react-error-boundary';
import { useTranslation } from 'react-i18next';

import { formatNumber } from '@/common/utils/utils';
import { RELAY_CHAIN_NATIVE_TOKEN, RELAY_CHAIN_NATIVE_TOKEN_SYMBOL } from '@/config/relay-chains';
import { OracleStatus, useGetOracleStatus } from '@/hooks/api/oracle/use-get-oracle-status';
import { useGetExchangeRate } from '@/hooks/api/use-get-exchange-rate';
Expand Down Expand Up @@ -84,7 +85,11 @@ const OracleStatusCard = ({ hasLinks }: Props): JSX.Element => {
</Ring64Title>
{relayChainExchangeRate && (
<Ring64Value>
{relayChainExchangeRate.toHuman(5)} {RELAY_CHAIN_NATIVE_TOKEN_SYMBOL}
{formatNumber(Number(relayChainExchangeRate.toHuman(5)), {
minimumFractionDigits: 5,
maximumFractionDigits: 5
})}{' '}
{RELAY_CHAIN_NATIVE_TOKEN_SYMBOL}
</Ring64Value>
)}
</Ring64>
Expand Down

2 comments on commit d21ddf6

@vercel
Copy link

@vercel vercel bot commented on d21ddf6 Sep 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d21ddf6 Sep 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.