diff --git a/lib/themes/coin_icon_provider.dart b/lib/themes/coin_icon_provider.dart index bfa21668c..6c17969e6 100644 --- a/lib/themes/coin_icon_provider.dart +++ b/lib/themes/coin_icon_provider.dart @@ -39,6 +39,6 @@ final coinIconProvider = Provider.family((ref, coin) { return assets.ethereum; } } else { - return (assets as ThemeAssetsV2).coinIcons[coin]!; + return (assets as ThemeAssetsV2).coinIcons[coin.mainNetVersion]!; } }); diff --git a/lib/themes/coin_image_provider.dart b/lib/themes/coin_image_provider.dart index eb79bd2e2..239e1d1cb 100644 --- a/lib/themes/coin_image_provider.dart +++ b/lib/themes/coin_image_provider.dart @@ -43,7 +43,7 @@ final coinImageProvider = Provider.family((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((ref, coin) { return assets.ethereumImageSecondary; } } else { - return (assets as ThemeAssetsV2).coinSecondaryImages[coin]!; + return (assets as ThemeAssetsV2).coinSecondaryImages[coin.mainNetVersion]!; } });