diff --git a/frontend/src/__tests__/utils/currency.test.ts b/frontend/src/__tests__/utils/currency.test.ts index 7e3d9715b..387c39839 100644 --- a/frontend/src/__tests__/utils/currency.test.ts +++ b/frontend/src/__tests__/utils/currency.test.ts @@ -26,6 +26,10 @@ describe('getCurrencySymbol', () => { expect(getCurrencySymbol('MYR')).toBe('RM'); }); + it('returns ₴ for UAH', () => { + expect(getCurrencySymbol('UAH')).toBe('₴'); + }); + it('returns the code itself for unknown currencies', () => { expect(getCurrencySymbol('XYZ')).toBe('XYZ'); }); @@ -45,7 +49,7 @@ describe('SUPPORTED_CURRENCIES', () => { expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'MYR')).toBeDefined(); }); - it('has 28 entries', () => { - expect(SUPPORTED_CURRENCIES).toHaveLength(28); + it('has 29 entries', () => { + expect(SUPPORTED_CURRENCIES).toHaveLength(29); }); }); diff --git a/frontend/src/utils/currency.ts b/frontend/src/utils/currency.ts index 8315015b8..ab3d87e38 100644 --- a/frontend/src/utils/currency.ts +++ b/frontend/src/utils/currency.ts @@ -27,6 +27,7 @@ const CURRENCY_SYMBOLS: Record = { RUB: '₽', HUF: 'Ft', ILS: '₪', + UAH: '₴', }; export function getCurrencySymbol(currencyCode: string): string {