From 39ad88f4337f4a81521ef4fac31a9ef1bae06ca0 Mon Sep 17 00:00:00 2001 From: V Date: Tue, 1 Aug 2023 05:23:52 +0200 Subject: Experiments: Fix canary --- src/plugins/experiments.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/experiments.tsx') diff --git a/src/plugins/experiments.tsx b/src/plugins/experiments.tsx index cc8309d..d38687f 100644 --- a/src/plugins/experiments.tsx +++ b/src/plugins/experiments.tsx @@ -75,7 +75,7 @@ export default definePlugin({ replacement: [ { match: /return\s*?(\i)\.hasFlag\((\i\.\i)\.STAFF\)}/, - replace: (_, user, flags) => `return Vencord.Webpack.Common.UserStore.getCurrentUser().id===${user}.id||${user}.hasFlag(${flags}.STAFF)}` + replace: (_, user, flags) => `return Vencord.Webpack.Common.UserStore.getCurrentUser()?.id===${user}.id||${user}.hasFlag(${flags}.STAFF)}` }, { match: /hasFreePremium=function\(\){return this.isStaff\(\)\s*?\|\|/, -- cgit