Skip to content

Commit

Permalink
Fix BookingList.tsx and User.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Apr 23, 2024
1 parent 4a8c082 commit 3958c32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/components/BookingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const BookingList = ({
if (agencies && statuses && loggedUser) {
fetchData(page, user)
}
}, [page]) // eslint-disable-line react-hooks/exhaustive-deps
}, [page, loggedUser]) // eslint-disable-line react-hooks/exhaustive-deps

useEffect(() => {
if (agencies && statuses && loggedUser) {
Expand Down
1 change: 1 addition & 0 deletions backend/src/pages/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ const User = () => {
hideDates={env.isMobile()}
checkboxSelection={!env.isMobile()}
hideAgencyColumn={agency}
language={loggedUser.language}
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/BookingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const BookingList = ({
if (agencies && statuses && user) {
fetchData(page, user)
}
}, [page]) // eslint-disable-line react-hooks/exhaustive-deps
}, [page, user]) // eslint-disable-line react-hooks/exhaustive-deps

useEffect(() => {
if (agencies && statuses && user) {
Expand Down

0 comments on commit 3958c32

Please sign in to comment.