hide ClientsOrdersList for non masters

This commit is contained in:
vchikalkin 2025-06-23 22:08:19 +03:00
parent ff68ffbb6a
commit f69aeb2353

View File

@ -30,10 +30,10 @@ export function ClientsOrdersList() {
},
},
},
Boolean(customer?.documentId) && Boolean(selectedDate),
Boolean(customer?.documentId) && Boolean(selectedDate) && isMaster,
);
if (!orders?.length || isLoading) return null;
if (!orders?.length || isLoading || !isMaster) return null;
return (
<div className="flex flex-col space-y-2">