diff --git a/CHANGELOG.md b/CHANGELOG.md index f976fd810..2ac8ba0d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ * `` 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) diff --git a/lib/CurrencySelect/tests/CurrencySelect-test.js b/lib/CurrencySelect/tests/CurrencySelect-test.js index 42aed147c..203d776c2 100644 --- a/lib/CurrencySelect/tests/CurrencySelect-test.js +++ b/lib/CurrencySelect/tests/CurrencySelect-test.js @@ -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); diff --git a/util/currencies.js b/util/currencies.js index f14811965..59475015e 100644 --- a/util/currencies.js +++ b/util/currencies.js @@ -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);