result_list array as list of countries

This commit was merged in pull request #531.
This commit is contained in:
victorAnumudu
2023-12-18 09:53:42 +01:00
parent fa565437f0
commit b3db82000b
6 changed files with 32 additions and 34 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ export default function WalletItemCard({ walletItem, payment, countries }) {
};
const currentWalletCurrency = countries
.map((country) => country)
.filter((country) => country[0] === walletItem.country);
// .map((country) => country)
.filter((country) => country.code === walletItem.country);
const image = walletItem.code
? `${walletItem.code.toLowerCase()}.svg`