From f0c4441aa51bfb9ede548e6a088256465f553faa Mon Sep 17 00:00:00 2001 From: Vincent Berkien Date: Tue, 19 Dec 2023 11:20:28 +0100 Subject: [PATCH] fix for genericparser where there is no expectedasset(sub)class --- GhostfolioSidekick/Ghostfolio/API/GhostfolioAPI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GhostfolioSidekick/Ghostfolio/API/GhostfolioAPI.cs b/GhostfolioSidekick/Ghostfolio/API/GhostfolioAPI.cs index 4b4de6aa..aa196258 100644 --- a/GhostfolioSidekick/Ghostfolio/API/GhostfolioAPI.cs +++ b/GhostfolioSidekick/Ghostfolio/API/GhostfolioAPI.cs @@ -205,8 +205,8 @@ static void AddToCache(string identifier, Model.SymbolProfile? asset, IMemoryCac } var filteredAsset = assets - .Where(x => expectedAssetClass?.Contains(x.AssetClass.GetValueOrDefault()) ?? false) - .Where(x => expectedAssetSubClass?.Contains(x.AssetSubClass.GetValueOrDefault()) ?? false) + .Where(x => expectedAssetClass?.Contains(x.AssetClass.GetValueOrDefault()) ?? true) + .Where(x => expectedAssetSubClass?.Contains(x.AssetSubClass.GetValueOrDefault()) ?? true) .OrderBy(x => x.ISIN == identifier ? 0 : 1) .ThenBy(x => x.Symbol == identifier ? 0 : 1) .ThenBy(x => x.Name == identifier ? 0 : 1)