hide ClientsOrdersList for non masters
This commit is contained in:
parent
ff68ffbb6a
commit
f69aeb2353
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user