From a4d9f8f5b2a92f88aeb9f5667d76c4b17df66fe4 Mon Sep 17 00:00:00 2001 From: Avior Date: Tue, 22 Jun 2021 19:33:25 +0200 Subject: [PATCH] Fixed set cards not found when using ids Signed-off-by: Avior --- endpoints/sets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/sets.ts b/endpoints/sets.ts index bd5d0e1..47541e8 100644 --- a/endpoints/sets.ts +++ b/endpoints/sets.ts @@ -36,7 +36,7 @@ export default class implements Endpoint, item: string) { - const set = common.find((s) => s.name[this.lang] === item) + const set = common.find((s) => s.name[this.lang] === item || s.id === item) if (!set || !isSetAvailable(set, this.lang)) return undefined