Skip to content

Commit

Permalink
Merge pull request #1553 from kaloudis/zeus-1550
Browse files Browse the repository at this point in the history
ZEUS-1550: AmountInput: getSatAmount: handle amounts with comma separator
  • Loading branch information
kaloudis authored Jul 20, 2023
2 parents 7a3c24c + 4a2d778 commit 9cde006
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 9cde006

Please sign in to comment.