aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/experiments.tsx
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-08-01 05:23:52 +0200
committerV <vendicated@riseup.net>2023-08-01 05:23:52 +0200
commit39ad88f4337f4a81521ef4fac31a9ef1bae06ca0 (patch)
tree48f9d42dea4846ecb173a74fe7457c47df1ce84a /src/plugins/experiments.tsx
parent8cf4d2a2c0ffcca68d8627b4d8f15b5a0f2eb3c0 (diff)
downloadVencord-39ad88f4337f4a81521ef4fac31a9ef1bae06ca0.tar.gz
Vencord-39ad88f4337f4a81521ef4fac31a9ef1bae06ca0.tar.bz2
Vencord-39ad88f4337f4a81521ef4fac31a9ef1bae06ca0.zip
Experiments: Fix canary
Diffstat (limited to 'src/plugins/experiments.tsx')
-rw-r--r--src/plugins/experiments.tsx2
1 files changed, 1 insertions, 1 deletions
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*?\|\|/,