diff --git a/client/src/hooks/helpers/use-resource-arrivals.tsx b/client/src/hooks/helpers/use-resource-arrivals.tsx index 9dd7396bd..ef7af8933 100644 --- a/client/src/hooks/helpers/use-resource-arrivals.tsx +++ b/client/src/hooks/helpers/use-resource-arrivals.tsx @@ -83,7 +83,7 @@ const usePlayerArrivals = () => { const ownedResourceTracker = getComponentValue(OwnedResourcesTracker, id); - const hasResources = ownedResourceTracker?.resource_types !== 0n; + const hasResources = !!ownedResourceTracker && ownedResourceTracker.resource_types !== 0n; const playerStructurePosition = playerStructurePositions.find( (structurePosition) => structurePosition.x === position.x && structurePosition.y === position.y,