From 2a9ce52aa1ba50656fc8beae2f1a9287ad5b5aed Mon Sep 17 00:00:00 2001 From: xichaoyin Date: Fri, 12 Jan 2024 20:12:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=9A=AE=E8=82=A4=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/public/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/public/user.ts b/src/shared/public/user.ts index 5310bab..db2f7ab 100644 --- a/src/shared/public/user.ts +++ b/src/shared/public/user.ts @@ -37,7 +37,7 @@ export class UserShared { // else if (conf.cond[0] == 'time') return collection.active[fmtId] == -1 || collection.active[fmtId] > G.time; else if (conf.cond[0] == 'time') return conf.cond[1] == -1 || collection.active?.[fmtId] > G.time; else if (conf.cond[0] == 'model') return Object.values(collection.model).find(i => i.id == conf.cond[1]); - else if (conf.cond[0] == 'heroskin') return conf.cond[1] in collection.heroskin; + else if (conf.cond[0] == 'heroskin') return conf.cond[1] in (collection.heroskin || {}); else return false; } } \ No newline at end of file