aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/fakeNitro.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/fakeNitro.tsx b/src/plugins/fakeNitro.tsx
index 52a9d25..b48a466 100644
--- a/src/plugins/fakeNitro.tsx
+++ b/src/plugins/fakeNitro.tsx
@@ -321,7 +321,7 @@ export default definePlugin({
},
handleProtoChange(proto: any, user: any) {
- if ((!proto.appearance && !AppearanceSettingsProto) || !UserSettingsProtoStore) return;
+ if (proto == null || typeof proto === "string" || !UserSettingsProtoStore || (!proto.appearance && !AppearanceSettingsProto)) return;
const premiumType: number = user?.premium_type ?? UserStore?.getCurrentUser()?.premiumType ?? 0;