Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit df8561a

Browse files
fix: bucket selection
1 parent a66edc9 commit df8561a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/App.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,11 @@ const App = () => {
8787
useEffect(() => {
8888
if (location.pathname === "/earn/my-gigs" && isLoggedIn) {
8989
if (!location.search) {
90+
store.dispatch(actions.filter.updateGigFilter(initialGigFilter));
9091
const cachedGigs = store.getState().myGigs[initialGigFilter.status];
9192
if (cachedGigs.myGigs && cachedGigs.myGigs.length !== 0) {
9293
return;
9394
}
94-
store.dispatch(actions.filter.updateGigFilter(initialGigFilter));
95-
9695
store.dispatch(
9796
actions.myGigs.getMyOpenGigs(
9897
constants.GIGS_FILTER_STATUSES_PARAM[initialGigFilter.status]

0 commit comments

Comments
 (0)