Skip to content

Commit

Permalink
Fix MsgSendToCosmosClaim exponent formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
avalkov committed May 31, 2022
1 parent 9e60ef7 commit e45f4d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/msg/gravity/send_to_cosmos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useProfileRecoil,
} from '@recoil/profiles';
import {
formatTokenByExponent,
formatTokenByExponent, formatNumber,
} from '@utils/format_token';

const SendToCosmos = (props: {
Expand All @@ -17,8 +17,9 @@ const SendToCosmos = (props: {

const receiver = useProfileRecoil(message.receiver);
const receiverMoniker = receiver ? receiver?.name : message.receiver;
const amount = formatTokenByExponent(message.amount, 25);

const displayAmount = `${formatTokenByExponent(message.amount, 25)} CUDOS`;
const displayAmount = `${formatNumber(amount, 18)} CUDOS`;

return (
<>
Expand Down

0 comments on commit e45f4d6

Please sign in to comment.