fix: coin icons for testnet wallets

This commit is contained in:
julian 2023-05-18 16:13:52 -06:00
parent b946bba01b
commit f0e16fc7da
2 changed files with 3 additions and 3 deletions

View file

@ -39,6 +39,6 @@ final coinIconProvider = Provider.family<String, Coin>((ref, coin) {
return assets.ethereum;
}
} else {
return (assets as ThemeAssetsV2).coinIcons[coin]!;
return (assets as ThemeAssetsV2).coinIcons[coin.mainNetVersion]!;
}
});

View file

@ -43,7 +43,7 @@ final coinImageProvider = Provider.family<String, Coin>((ref, coin) {
return assets.ethereumImage;
}
} else {
return (assets as ThemeAssetsV2).coinImages[coin]!;
return (assets as ThemeAssetsV2).coinImages[coin.mainNetVersion]!;
}
});
@ -87,6 +87,6 @@ final coinImageSecondaryProvider = Provider.family<String, Coin>((ref, coin) {
return assets.ethereumImageSecondary;
}
} else {
return (assets as ThemeAssetsV2).coinSecondaryImages[coin]!;
return (assets as ThemeAssetsV2).coinSecondaryImages[coin.mainNetVersion]!;
}
});