fix: Generic fixes of bugs from Support (#1774)

This commit is contained in:
David Adegoke
2024-10-31 04:10:40 +03:00
committed by GitHub
parent 5fc649023c
commit 752b6bbebf
10 changed files with 46 additions and 6 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class FiatCurrency extends EnumerableItem<String> with Serializable<String> impl
FiatCurrency.tur.raw: FiatCurrency.tur,
};
static FiatCurrency deserialize({required String raw}) => _all[raw]!;
static FiatCurrency deserialize({required String raw}) => _all[raw] ?? FiatCurrency.usd;
@override
bool operator ==(Object other) => other is FiatCurrency && other.raw == raw;