Prevent check from failing when upd object is missing

This commit is contained in:
Dev 2024-04-23 19:38:45 +01:00
parent 8761462acd
commit 0ab5ca6dee

View File

@ -180,7 +180,7 @@ export class FenceService
): void
{
// Is preset
if (item.upd.sptPresetId)
if (item.upd?.sptPresetId)
{
if (assort.barter_scheme[item._id])
{