From 4a4d65ee4ce427d0967b5365a37f3c06a6f92b68 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()` (cherry picked from commit 0d9bd9a6d3ad35f9b371c97e8038efc15349e107) --- 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 cdab105e..3219a0bd 100644 --- a/project/src/services/InsuranceService.ts +++ b/project/src/services/InsuranceService.ts @@ -110,7 +110,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,