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

Commit 4d4d5c5

Browse files
Merge pull request #173 from topcoder-platform/gigs-filter
Handle unknown status
2 parents 55bcac3 + 8d922ce commit 4d4d5c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/App.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ const App = () => {
104104
store.dispatch(actions.myGigs.startCheckingGigs(params.externalId));
105105
return;
106106
}
107+
const s =
108+
_.values(constants.GIGS_FILTER_STATUSES).indexOf(params.status) >= 0
109+
? params.status
110+
: null;
107111
const updatedGigFilter = {
108-
status: params.status || "Open Applications",
112+
status: s || "Open Applications",
109113
};
110114
const currentGig = store.getState().filter.gig;
111115
const diff = !_.isEqual(updatedGigFilter, currentGig);

0 commit comments

Comments
 (0)