From 43ad523dceb1bf4de72c52a23cf91cdd35eb0f6f Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 25 Mar 2023 16:35:38 +0000 Subject: [PATCH] Fix: null guard bonus check during `upgradeComplete` --- project/src/controllers/HideoutController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index 7de9b430..9ca6d4a6 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -189,7 +189,7 @@ export class HideoutController // Apply bonuses const bonuses = hideoutData.stages[hideoutArea.level].bonuses; - if (bonuses.length > 0) + if (bonuses?.length > 0) { for (const bonus of bonuses) {