From 51b8fd216cee85656dd3e9617391cc825f4f5d92 Mon Sep 17 00:00:00 2001 From: MARCROCK22 <57925328+MARCROCK22@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:11:43 -0400 Subject: [PATCH] * --- src/components/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/handler.ts b/src/components/handler.ts index 04dbbf7..67e3204 100644 --- a/src/components/handler.ts +++ b/src/components/handler.ts @@ -100,7 +100,7 @@ export class ComponentHandler extends BaseHandler { hasComponent(id: string, customId: string) { return this.values.get(id)?.components?.some(x => { - if (typeof x.match === 'string' && x.match === customId) return true; + if (typeof x.match === 'string') return x.match === customId; if (Array.isArray(x.match)) return x.match.includes(customId); return customId.match(x.match); });