Skip to content

Commit

Permalink
fix: use effect bsucar clientes
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 5, 2022
1 parent 9dc97e0 commit 805e8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contexts/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export function UserProvider({ children }: any) {

useEffect(() => {
buscarClientes();
}, [barberId, selectDay]);
}, [barberId, selectDay, isBarbeiro, isCliente]);

useEffect(() => {
const params = pathname.split('/')[1];
Expand Down

0 comments on commit 805e8f6

Please sign in to comment.