Skip to content

Commit a4aad38

Browse files
committed
trackStatus: only retain track value
1 parent 4308177 commit a4aad38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function ChallengeFilters({
5454
const switchTrack = (track, on) => {
5555
const act = on ? Filter.addTrack : Filter.removeTrack;
5656
const filterObj = act(filterState, track);
57-
const newFilterObj = _.omit(filterObj, 'text');
57+
const newFilterObj = _.pick(filterObj, 'tracks');
5858
localStorage.setItem('trackStatus', JSON.stringify(newFilterObj));
5959
setFilterState(filterObj);
6060
};

0 commit comments

Comments
 (0)