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;