Skip to content

Commit

Permalink
Add missing currency information for Iceland and Bulgaria (#2811)
Browse files Browse the repository at this point in the history
* Add missing currency information for Iceland and Bulgaria

* Adding changeset file
  • Loading branch information
sponglord authored Aug 26, 2024
1 parent 1e98058 commit eb960c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-items-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@adyen/adyen-web': patch
---

Adding missing currency information for Iceland and Bulgaria
1 change: 1 addition & 0 deletions packages/lib/src/utils/constants/currency-decimals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const CURRENCY_DECIMALS = {
GHC: 1,
GNF: 1,
KMF: 1,
ISK: 1,
PYG: 1,
RWF: 1,
UGX: 1,
Expand Down
2 changes: 2 additions & 0 deletions packages/lib/storybook/utils/get-currency.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const currencies: Record<string, string> = {
AR: 'ARS',
AU: 'AUD',
BG: 'BGN',
BR: 'BRL',
CA: 'CAD',
CH: 'CHF',
Expand All @@ -13,6 +14,7 @@ const currencies: Record<string, string> = {
HU: 'HUN',
ID: 'IDR',
IN: 'INR',
IS: 'ISK',
JP: 'JPY',
KR: 'KRW',
MG: 'MGA',
Expand Down

0 comments on commit eb960c1

Please sign in to comment.