undefined variable fixed

This commit was merged in pull request #630.
This commit is contained in:
victorAnumudu
2024-03-09 08:19:33 +01:00
parent dccbe76c5b
commit ee94cbc92c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ export default function FamilyWalletBox({ wallet, payment }) {
const currentWalletSelected = data?.filter((item) => item.code === name);
}
const image = selectedWallet.code
? `${selectedWallet.code.toLowerCase()}.svg`
const image = selectedWallet?.code
? `${selectedWallet?.code.toLowerCase()}.svg`
: "default.png";