From e6bd91f2427321f5cd010860e042630384d6bfd3 Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Sat, 13 Jun 2015 15:19:24 +0200 Subject: [PATCH] Fixed a bug with the fuzzy category matching The fuzzy category matching accidently returned the whole KeyValuePair instead of just the actual category data. --- UI/Components/SpeedrunCom.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Components/SpeedrunCom.cs b/UI/Components/SpeedrunCom.cs index 2ebadf9..678fd53 100644 --- a/UI/Components/SpeedrunCom.cs +++ b/UI/Components/SpeedrunCom.cs @@ -94,7 +94,7 @@ public Uri GetGameCoverUri(string gameId, CoverResolution resolution = CoverReso private dynamic findCategory(IDictionary categories, string categoryName) { var categoryNameLower = (categoryName ?? "").Trim().ToLowerInvariant(); - return categories.Where(x => (x.Key ?? "").Trim().ToLowerInvariant() == categoryNameLower).First(); + return categories.Where(x => (x.Key ?? "").Trim().ToLowerInvariant() == categoryNameLower).First().Value; } private IEnumerable getGameList()