From 86f69e84c17848ff16b071bf2e3b1125df066f62 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 24 May 2024 03:45:46 -0300 Subject: [PATCH] I'm stupid --- src/webpack/patchWebpack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index e0f8ce12c..9b1fcdb83 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -67,7 +67,7 @@ const moduleFactoriesHandler: ProxyHandler = { // Check if this factory is already patched // @ts-ignore - if (existingFactory.$$vencordOriginal != null) { + if (existingFactory?.$$vencordOriginal != null) { // @ts-ignore existingFactory.$$vencordOriginal = newValue; return true;