Fallback if category is mods

pull/73/head
MillenniumEarl 2021-03-03 21:16:48 +01:00
parent 2be07a38cc
commit dae582eedc
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ export default class LatestSearchQuery implements IQuery {
url.searchParams.set("cmd", "list");
// Set the category
url.searchParams.set("cat", this.category);
const cat: TCategory = this.category === "mods" ? "games" : this.category;
url.searchParams.set("cat", cat);
// Add tags and prefixes
const parser = new PrefixParser();