Added guard against missing trader insuranceStart mesages inside sendInsuredItems()

(cherry picked from commit 0d9bd9a6d3)
This commit is contained in:
Dev 2024-07-22 13:24:00 +01:00
parent 7d57a80e20
commit 4a4d65ee4c

View File

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