Browse Source

Revert "extend currencies with Ukrainian Hryvnia (#801)"

This reverts commit df6926c00265fa8e7199dab75a9700c53c9d3751.
maziggy 2 months ago
parent
commit
d1f86efc60
2 changed files with 2 additions and 7 deletions
  1. 2 6
      frontend/src/__tests__/utils/currency.test.ts
  2. 0 1
      frontend/src/utils/currency.ts

+ 2 - 6
frontend/src/__tests__/utils/currency.test.ts

@@ -26,10 +26,6 @@ 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');
   });
@@ -49,7 +45,7 @@ describe('SUPPORTED_CURRENCIES', () => {
     expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'MYR')).toBeDefined();
   });
 
-  it('has 29 entries', () => {
-    expect(SUPPORTED_CURRENCIES).toHaveLength(29);
+  it('has 28 entries', () => {
+    expect(SUPPORTED_CURRENCIES).toHaveLength(28);
   });
 });

+ 0 - 1
frontend/src/utils/currency.ts

@@ -27,7 +27,6 @@ const CURRENCY_SYMBOLS: Record<string, string> = {
   RUB: '₽',
   HUF: 'Ft',
   ILS: '₪',
-  UAH: '₴',
 };
 
 export function getCurrencySymbol(currencyCode: string): string {