fix(plugins): statusPresets & fakeNitro causing plugins to not load entirely

This commit is contained in:
verticalsync 2024-12-30 16:38:51 +02:00
parent 276a53169a
commit 59b76e8867
No known key found for this signature in database
GPG key ID: C2BC9F32343245E1
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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 {