null error fix for themes that don't have coin card images

This commit is contained in:
julian 2023-06-08 11:35:05 -06:00
parent ed120f552a
commit ae75867381

View file

@ -2347,10 +2347,12 @@ class ThemeAssetsV3 implements IThemeAssets {
@ignore
Map<Coin, String>? get coinCardImages =>
_coinCardImages ??= parseCoinAssetsString(
coinCardImagesString!,
placeHolder: coinPlaceholder,
);
_coinCardImages ??= coinCardImagesString == null
? null
: parseCoinAssetsString(
coinCardImagesString!,
placeHolder: coinPlaceholder,
);
@ignore
Map<Coin, String>? _coinCardImages;
late final String? coinCardImagesString;