Skip to content

Commit 323c8d4

Browse files
committed
Clear Challenge Filter On Menu Click
1 parent 0a80847 commit 323c8d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routers/challenge-list/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const App = () => {
2929

3030
useEffect(() => {
3131
if (!location.search) {
32+
const filterChange = utils.challenge.createEmptyChallengeFilter();
33+
store.dispatch(actions.filter.clearChallengeFilter(filterChange));
3234
store.dispatch(actions.challenges.getChallengesInit());
3335
store.dispatch(
3436
actions.challenges.getChallengesDone(initialChallengeFilter)

0 commit comments

Comments
 (0)