From d49a9da751d26f2e05b677df81983490d40629f6 Mon Sep 17 00:00:00 2001 From: CWXDEV Date: Thu, 28 Dec 2023 11:30:36 +0000 Subject: [PATCH] check for null on conditionCounters --- project/src/controllers/InraidController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/InraidController.ts b/project/src/controllers/InraidController.ts index a4313c8d..deb17271 100644 --- a/project/src/controllers/InraidController.ts +++ b/project/src/controllers/InraidController.ts @@ -316,7 +316,7 @@ export class InraidController */ protected profileHasConditionCounters(profile: IPmcData): boolean { - if (!profile.ConditionCounters.Counters) + if (!profile.ConditionCounters?.Counters) { return false; }