Skip to content

Commit

Permalink
Fixed a bug with the fuzzy category matching
Browse files Browse the repository at this point in the history
The fuzzy category matching accidently returned the whole
KeyValuePair instead of just the actual category data.
  • Loading branch information
CryZe committed Jun 13, 2015
1 parent 6a500a2 commit e6bd91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/Components/SpeedrunCom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public Uri GetGameCoverUri(string gameId, CoverResolution resolution = CoverReso
private dynamic findCategory(IDictionary<string, dynamic> 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<GamePair> getGameList()
Expand Down

0 comments on commit e6bd91f

Please sign in to comment.