From cb68bf83c69cea82beac11133e348e9fba78b907 Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 27 Dec 2024 16:04:23 +0000 Subject: [PATCH] Added null guards --- project/src/services/SeasonalEventService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/services/SeasonalEventService.ts b/project/src/services/SeasonalEventService.ts index b44eb6b0..1963f055 100644 --- a/project/src/services/SeasonalEventService.ts +++ b/project/src/services/SeasonalEventService.ts @@ -756,7 +756,7 @@ export class SeasonalEventService { } const mapData: ILocation = maps[mapName]; - if (typeof mapData.base.Events.Khorovod?.Chance !== "undefined") { + if (typeof mapData.base?.Events?.Khorovod?.Chance !== "undefined") { mapData.base.Events.Khorovod.Chance = 100; } }