From 0d9bd9a6d3ad35f9b371c97e8038efc15349e107 Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 22 Jul 2024 13:24:00 +0100 Subject: [PATCH] Added guard against missing trader `insuranceStart` mesages inside `sendInsuredItems()` --- project/src/services/InsuranceService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/services/InsuranceService.ts b/project/src/services/InsuranceService.ts index f6258563..0400ef5a 100644 --- a/project/src/services/InsuranceService.ts +++ b/project/src/services/InsuranceService.ts @@ -134,7 +134,7 @@ export class InsuranceService sessionID, traderEnum, MessageType.NPC_TRADER, - this.randomUtil.getArrayValue(dialogueTemplates?.insuranceStart), + this.randomUtil.getArrayValue(dialogueTemplates?.insuranceStart ?? ["INSURANCE START MESSAGE MISSING"]), undefined, this.timeUtil.getHoursAsSeconds( globals.config.Insurance.MaxStorageTimeInHour,