Skip to content

Commit

Permalink
ZEUS-1550: AmountInput: getSatAmount: handle amounts with comma separ…
Browse files Browse the repository at this point in the history
…ator
  • Loading branch information
kaloudis committed Jul 20, 2023
1 parent 60d402c commit 4a2d778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/AmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const getSatAmount = (amount: string | number) => {
const { fiat } = settings;
const { units } = unitsStore;

const value = amount || '0';
// replace , with . for unit separator
const value = amount.toString().replace(/,/g, ',') || '0';

const fiatEntry =
fiat && fiatRates
Expand Down

0 comments on commit 4a2d778

Please sign in to comment.