Skip to content

Commit 586bc45

Browse files
Merge pull request #164 from fikzzzy/issue_124
Issue 124
2 parents cd6c989 + 0c846fb commit 586bc45

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

src/containers/Challenges/Listing/ChallengeItem/TrackIcon/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
height: 36px;
77
vertical-align: middle;
88
line-height: 1;
9+
cursor: pointer;
910

1011
> svg {
1112
position: absolute;

src/containers/Challenges/Listing/index.jsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const Listing = ({
4242
);
4343
const filterChange = {
4444
sortBy: constants.CHALLENGE_SORT_BY[selectedOption.label],
45+
page: 1,
4546
};
4647
updateFilter(filterChange);
4748
}
@@ -60,7 +61,10 @@ const Listing = ({
6061
size="xs"
6162
onChange={(value) => {
6263
onSearch.current(() => {
63-
const filterChange = { search: value, page: 1 };
64+
const filterChange = {
65+
search: value,
66+
page: 1,
67+
};
6468
updateFilter(filterChange);
6569
});
6670
}}
@@ -93,7 +97,11 @@ const Listing = ({
9397
const s = range.startDate
9498
? moment(range.startDate).toISOString()
9599
: null;
96-
const filterChange = { endDateStart: s, startDateEnd: d };
100+
const filterChange = {
101+
endDateStart: s,
102+
startDateEnd: d,
103+
page: 1,
104+
};
97105
updateFilter(filterChange);
98106
}}
99107
range={{
@@ -111,11 +119,17 @@ const Listing = ({
111119
<ChallengeItem
112120
challenge={challenge}
113121
onClickTag={(tag) => {
114-
const filterChange = { tags: [tag] };
122+
const filterChange = {
123+
tags: [tag],
124+
page: 1,
125+
};
115126
updateFilter(filterChange);
116127
}}
117128
onClickTrack={(track) => {
118-
const filterChange = { tracks: [track] };
129+
const filterChange = {
130+
tracks: [track.replace('Quality Assurance', 'QA')],
131+
page: 1,
132+
};
119133
updateFilter(filterChange);
120134
}}
121135
isLoggedIn={isLoggedIn}

0 commit comments

Comments
 (0)