From dda5b3a3640da1789055aa7c296752799e35948f Mon Sep 17 00:00:00 2001 From: Tharki-God Date: Wed, 1 Nov 2023 13:56:52 +0530 Subject: [PATCH] lint?? --- src/lib/utils.tsx | 4 ++-- src/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/utils.tsx b/src/lib/utils.tsx index 1849b62..d95aaeb 100644 --- a/src/lib/utils.tsx +++ b/src/lib/utils.tsx @@ -4,8 +4,8 @@ import { MaskManager } from "./requiredModules"; export const refreshMaskLibrary = (): void => { try { - if (MaskManager) { - PluginLogger.error("Missing “MaskLibrary” module, Please report this to the developer."); + if (!MaskManager) { + PluginLogger.error("Missing “MaskManager” module, Please report this to the developer."); return; } const { MaskLibrary } = MaskManager; diff --git a/src/types.ts b/src/types.ts index 78bca16..e9727ef 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,7 +18,7 @@ export interface MaskLibrary { $$typeof: symbol; compare: null | DefaultTypes.AnyFunction; type: DefaultTypes.AnyFunction; - }; + } & ComponentClass; MaskIDs: { AUTOCOMPLETE_EMOJI_UPSELL_EMOJI: string; AVATAR_CALL_ICON: string;