0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 08:10:44 -05:00

Added nullguard to showQuestItemHandoverMatchError()

This commit is contained in:
Dev 2024-07-21 00:14:33 +01:00
parent ed3e16a94f
commit 014826e683

View File

@ -904,7 +904,7 @@ export class QuestController
{ {
const errorMessage = this.localisationService.getText("quest-handover_wrong_item", { const errorMessage = this.localisationService.getText("quest-handover_wrong_item", {
questId: handoverQuestRequest.qid, questId: handoverQuestRequest.qid,
handedInTpl: itemHandedOver._tpl, handedInTpl: itemHandedOver?._tpl ?? "UNKNOWN",
requiredTpl: handoverRequirements.target[0], requiredTpl: handoverRequirements.target[0],
}); });
this.logger.error(errorMessage); this.logger.error(errorMessage);