diff --git a/lib/models/isar/stack_theme.dart b/lib/models/isar/stack_theme.dart index 9fe2b0b8e..79f7848f7 100644 --- a/lib/models/isar/stack_theme.dart +++ b/lib/models/isar/stack_theme.dart @@ -2199,10 +2199,11 @@ class ThemeAssetsV2 implements IThemeAssets { "$applicationThemesDirectoryPath/$themeId/assets", Map.from(json["coins"]["secondaries"] as Map), ) - ..coinCardImagesString = createCoinAssetsString( + ..coinCardImagesString = json["coins"]["cards"] is Map + ? createCoinAssetsString( "$applicationThemesDirectoryPath/$themeId/assets", Map.from(json["coins"]["cards"] as Map), - ) + ) : null ..loadingGif = json["loading_gif"] is String ? "$applicationThemesDirectoryPath/$themeId/assets/${json["loading_gif"] as String}" : null