Skip to content

Commit

Permalink
STCOM-1274: Exclude invalid additional currencies (#2255)
Browse files Browse the repository at this point in the history
* STCOM-1274: Exclude invalid additional currencies

* test: fix failing test

(cherry picked from commit 3f6a44c)
  • Loading branch information
alisher-epam authored and zburke committed Apr 8, 2024
1 parent 28b4b15 commit 168025f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* `<Selection>` should only move focus back to its control/trigger if focus within the list. Refs STCOM-1238.
* Relax prop-type for `ConfirmationModal.heading`.

* Exclude invalid additional currencies. Refs STCOM-1274.

## [12.1.0](https://github.com/folio-org/stripes-components/tree/v12.1.0) (2024-03-12)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v12.0.0...v12.1.0)

Expand Down
2 changes: 1 addition & 1 deletion lib/CurrencySelect/tests/CurrencySelect-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('CurrencySelect', () => {
});

describe('utility functions', () => {
const CURRENCY_COUNT = 161;
const CURRENCY_COUNT = 159;
it('expects currency maps to contain the same element counts', () => {
expect(Object.keys(currenciesByCode).length).to.equal(CURRENCY_COUNT);
expect(Object.keys(currenciesByName).length).to.equal(CURRENCY_COUNT);
Expand Down
2 changes: 2 additions & 0 deletions util/currencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const hiddenCurrencies = [
'USN', // US Dollar (Next Day)
'CHE', // WIR Euro
'CHW', // WIR Franc
'UYI', // Uruguay Peso en Unidades Indexadas
'UYW', // Uruguayan Unidad Previsional
];

export const filteredCurrencies = currencies.filter(c => hiddenCurrencies.indexOf(c.code) === -1);
Expand Down

0 comments on commit 168025f

Please sign in to comment.