Added guard against missing trader insuranceStart mesages inside sendInsuredItems()

This commit is contained in:
Dev 2024-07-22 13:24:00 +01:00
parent c1c74c726a
commit 0d9bd9a6d3

View File

@ -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,