diff --git a/explorer/src/components/DetailTable.tsx b/explorer/src/components/DetailTable.tsx index 1aab097a05..75aaae36ab 100644 --- a/explorer/src/components/DetailTable.tsx +++ b/explorer/src/components/DetailTable.tsx @@ -5,7 +5,7 @@ import { Tooltip } from '@nymproject/react/tooltip/Tooltip'; import { CopyToClipboard } from '@nymproject/react/clipboard/CopyToClipboard'; import { Box } from '@mui/system'; import { cellStyles } from './Universal-DataGrid'; -import { currencyToString } from '../utils/currency'; +import { unymToNym } from '../utils/currency'; import { GatewayEnrichedRowType } from './Gateways'; import { MixnodeRowType } from './MixNodes'; @@ -38,7 +38,7 @@ function formatCellValues(val: string | number, field: string) { ); } if (field === 'bond') { - return currencyToString(val.toString()); + return unymToNym(val, 6); } return val; } diff --git a/explorer/src/pages/Gateways/index.tsx b/explorer/src/pages/Gateways/index.tsx index 8e01fad54c..f35f7382b4 100644 --- a/explorer/src/pages/Gateways/index.tsx +++ b/explorer/src/pages/Gateways/index.tsx @@ -10,7 +10,7 @@ import { TableToolbar } from '../../components/TableToolbar'; import { CustomColumnHeading } from '../../components/CustomColumnHeading'; import { Title } from '../../components/Title'; import { cellStyles, UniversalDataGrid } from '../../components/Universal-DataGrid'; -import { currencyToString } from '../../utils/currency'; +import { unymToNym } from '../../utils/currency'; import { Tooltip } from '../../components/Tooltip'; import { BIG_DIPPER } from '../../api/constants'; import { splice } from '../../utils'; @@ -77,7 +77,7 @@ export const PageGateways: React.FC = () => { to={`/network-components/gateway/${params.row.identityKey}`} data-testid="pledge-amount" > - {currencyToString(params.value)} + {unymToNym(params.value, 6)} ), },