Skip to content

Commit

Permalink
fix: G$ value format
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Dec 10, 2024
1 parent 6cb4e21 commit d0204f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/app/src/components/DonateComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import useCrossNavigate from '../routes/useCrossNavigate';
import FrequencySelector from './DonateFrequency';
import NumberInput from './NumberInput';
import { ApproveTokenImg, PhoneImg, StreamWarning, ThankYouImg } from '../assets';
import { formatNumberWithCommas } from '../lib/formatFiatCurrency';

interface DonateComponentProps {
collective: Collective;
Expand Down Expand Up @@ -104,7 +105,7 @@ const SwapValue = ({ swapValue }: { swapValue: number }) => (
{' '}
G${' '}
</Text>
{swapValue.toFixed(4)}
{formatNumberWithCommas(swapValue.toString(), 2)}
</Text>
);

Expand Down

0 comments on commit d0204f4

Please sign in to comment.