mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 03:54:17 +02:00
Add Ukrainian Hryvnia to known currencies (#815)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
@@ -46,6 +50,6 @@ describe('SUPPORTED_CURRENCIES', () => {
|
||||
});
|
||||
|
||||
it('has 28 entries', () => {
|
||||
expect(SUPPORTED_CURRENCIES).toHaveLength(28);
|
||||
expect(SUPPORTED_CURRENCIES).toHaveLength(29);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -27,6 +27,7 @@ const CURRENCY_SYMBOLS: Record<string, string> = {
|
||||
RUB: '₽',
|
||||
HUF: 'Ft',
|
||||
ILS: '₪',
|
||||
UAH: '₴',
|
||||
};
|
||||
|
||||
export function getCurrencySymbol(currencyCode: string): string {
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -23,7 +23,7 @@
|
||||
|
||||
<!-- Splash screens for iOS -->
|
||||
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
|
||||
<script type="module" crossorigin src="/assets/index-COZAa55N.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DBBfrr2z.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DWwO6mIe.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user