From 99e2dfd2623fc3bbc2b37c6baf2f3bf2b515e928 Mon Sep 17 00:00:00 2001 From: koalasat Date: Thu, 15 Aug 2024 21:38:12 +0200 Subject: [PATCH] Fix fat finger --- api/migrations/0049_alter_currency_currency.py | 2 +- frontend/src/components/Icons/WorldFlags.tsx | 2 +- frontend/static/assets/currencies.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/migrations/0049_alter_currency_currency.py b/api/migrations/0049_alter_currency_currency.py index aad170de..e40cd007 100644 --- a/api/migrations/0049_alter_currency_currency.py +++ b/api/migrations/0049_alter_currency_currency.py @@ -13,6 +13,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='currency', name='currency', - field=models.PositiveSmallIntegerField(choices=[(1, 'USD'), (2, 'EUR'), (3, 'JPY'), (4, 'GBP'), (5, 'AUD'), (6, 'CAD'), (7, 'CHF'), (8, 'CNY'), (9, 'HKD'), (10, 'NZD'), (11, 'SEK'), (12, 'KRW'), (13, 'SGD'), (14, 'NOK'), (15, 'MXN'), (16, 'BYN'), (17, 'RUB'), (18, 'ZAR'), (19, 'TRY'), (20, 'BRL'), (21, 'CLP'), (22, 'CZK'), (23, 'DKK'), (24, 'HRK'), (25, 'HUF'), (26, 'INR'), (27, 'ISK'), (28, 'PLN'), (29, 'RON'), (30, 'ARS'), (31, 'VES'), (32, 'COP'), (33, 'PEN'), (34, 'UYU'), (35, 'PYG'), (36, 'BOB'), (37, 'IDR'), (38, 'ANG'), (39, 'CRC'), (40, 'CUP'), (41, 'DOP'), (42, 'GHS'), (43, 'GTQ'), (44, 'ILS'), (45, 'JMD'), (46, 'KES'), (47, 'KZT'), (48, 'MYR'), (49, 'NAD'), (50, 'NGN'), (51, 'AZN'), (52, 'PAB'), (53, 'PHP'), (54, 'PKR'), (55, 'QAR'), (56, 'SAR'), (57, 'THB'), (58, 'TTD'), (59, 'VND'), (60, 'XOF'), (61, 'TWD'), (62, 'TZS'), (63, 'XAF'), (64, 'UAH'), (65, 'EGP'), (66, 'LKR'), (67, 'MAD'), (68, 'AED'), (69, 'TND'), (70, 'ETB'), (71, 'GEL'), (72, 'UGX'), (73, 'RSD'), (74, 'IRT'), (75, 'BDT'), (76, 'ALL'), (77, 'DZA'), (300, 'XAU'), (1000, 'BTC')], unique=True), + field=models.PositiveSmallIntegerField(choices=[(1, 'USD'), (2, 'EUR'), (3, 'JPY'), (4, 'GBP'), (5, 'AUD'), (6, 'CAD'), (7, 'CHF'), (8, 'CNY'), (9, 'HKD'), (10, 'NZD'), (11, 'SEK'), (12, 'KRW'), (13, 'SGD'), (14, 'NOK'), (15, 'MXN'), (16, 'BYN'), (17, 'RUB'), (18, 'ZAR'), (19, 'TRY'), (20, 'BRL'), (21, 'CLP'), (22, 'CZK'), (23, 'DKK'), (24, 'HRK'), (25, 'HUF'), (26, 'INR'), (27, 'ISK'), (28, 'PLN'), (29, 'RON'), (30, 'ARS'), (31, 'VES'), (32, 'COP'), (33, 'PEN'), (34, 'UYU'), (35, 'PYG'), (36, 'BOB'), (37, 'IDR'), (38, 'ANG'), (39, 'CRC'), (40, 'CUP'), (41, 'DOP'), (42, 'GHS'), (43, 'GTQ'), (44, 'ILS'), (45, 'JMD'), (46, 'KES'), (47, 'KZT'), (48, 'MYR'), (49, 'NAD'), (50, 'NGN'), (51, 'AZN'), (52, 'PAB'), (53, 'PHP'), (54, 'PKR'), (55, 'QAR'), (56, 'SAR'), (57, 'THB'), (58, 'TTD'), (59, 'VND'), (60, 'XOF'), (61, 'TWD'), (62, 'TZS'), (63, 'XAF'), (64, 'UAH'), (65, 'EGP'), (66, 'LKR'), (67, 'MAD'), (68, 'AED'), (69, 'TND'), (70, 'ETB'), (71, 'GEL'), (72, 'UGX'), (73, 'RSD'), (74, 'IRT'), (75, 'BDT'), (76, 'ALL'), (77, 'DZD), (300, 'XAU'), (1000, 'BTC')], unique=True), ), ] diff --git a/frontend/src/components/Icons/WorldFlags.tsx b/frontend/src/components/Icons/WorldFlags.tsx index d7de950d..6cd0a7e1 100644 --- a/frontend/src/components/Icons/WorldFlags.tsx +++ b/frontend/src/components/Icons/WorldFlags.tsx @@ -90,7 +90,7 @@ const FlagWithProps = ({ code, width = '1.428em', height = '1.428em' }: Props): if (code === 'IRT') flag = ; if (code === 'BDT') flag = ; if (code === 'ALL') flag = ; - if (code === 'DZA') flag = ; + if (code === 'DZD') flag = ; if (code === 'ANY') flag = ; if (code === 'XAU') flag = ; if (code === 'BTC') flag = ; diff --git a/frontend/static/assets/currencies.json b/frontend/static/assets/currencies.json index 7e67b87b..63168318 100644 --- a/frontend/static/assets/currencies.json +++ b/frontend/static/assets/currencies.json @@ -75,7 +75,7 @@ "74": "IRT", "75": "BDT", "76": "ALL", - "77": "DZA", + "77": "DZD", "300": "XAU", "1000": "BTC" }