From 59b76e8867899aa87ea0884aca2fc3fd67195d71 Mon Sep 17 00:00:00 2001 From: verticalsync <60797172+verticalsync@users.noreply.github.com> Date: Mon, 30 Dec 2024 16:38:51 +0200 Subject: [PATCH] fix(plugins): statusPresets & fakeNitro causing plugins to not load entirely --- src/equicordplugins/statusPresets/index.tsx | 2 +- src/plugins/fakeNitro/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/statusPresets/index.tsx b/src/equicordplugins/statusPresets/index.tsx index c0ab1fab..48c07f9b 100644 --- a/src/equicordplugins/statusPresets/index.tsx +++ b/src/equicordplugins/statusPresets/index.tsx @@ -124,7 +124,7 @@ const RenderStatusMenuItem = ({ status, update, disabled }: { status: DiscordSta const StatusSubMenuComponent = () => { let premiumType; - if (Settings.plugins.NoNitroUpsell.enabled) { + if (Settings.plugins.NoNitroUpsell?.enabled) { // @ts-ignore premiumType = UserStore?.getCurrentUser()?._realPremiumType ?? UserStore?.getCurrentUser()?.premiumType ?? 0; } else { diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index ffce2428..3da127cd 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -31,7 +31,7 @@ import { applyPalette, GIFEncoder, quantize } from "gifenc"; import type { ReactElement, ReactNode } from "react"; let premiumType; -if (Settings.plugins.NoNitroUpsell.enabled) { +if (Settings.plugins.NoNitroUpsell?.enabled) { // @ts-ignore premiumType = UserStore?.getCurrentUser()?._realPremiumType ?? UserStore?.getCurrentUser()?.premiumType ?? 0; } else {