Skip to content

Commit

Permalink
Add JPY currency formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
synzen committed Feb 24, 2025
1 parent 3b2fe88 commit 57e9d62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/backend-api/src/utils/format-currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const formattersByCurrency: Record<string, (input: string) => string> = {
SGD: (input) => `S$${input}`,
SEK: (input) => `${input} kr`,
USD: (input) => `$${input}`,
JPY: (input) => ${input}`,
};

const ZERO_DECIMAL_CURRENCIES = ["JPY"];
Expand Down

0 comments on commit 57e9d62

Please sign in to comment.