include pickupLocation2 in pickup location filtering for DeliveryListPage
Some checks failed
Build and Push Docker Images / build-backend (push) Has been cancelled
Build and Push Docker Images / build-frontend (push) Has been cancelled

This commit is contained in:
Egor Pozharov
2026-04-21 12:02:12 +06:00
parent 2c59f027ea
commit bf62714d0d

View File

@@ -38,7 +38,7 @@ const DeliveryListPage = ({ selectedDate, onBack }: DeliveryListPageProps) => {
// Use all deliveries from store (already filtered by API)
const filteredDeliveries = useMemo(() => {
if (pickupFilter === 'all') return deliveries;
return deliveries.filter(d => d.pickupLocation === pickupFilter);
return deliveries.filter(d => d.pickupLocation === pickupFilter || d.pickupLocation2 === pickupFilter);
}, [deliveries, pickupFilter]);
const handleStatusChange = async (id: string) => {