Skip to content

Commit 426f63c

Browse files
committed
Fix of target tabs switch by # registrants and submissions links in challenge listing
1 parent 8c16c11 commit 426f63c

File tree

2 files changed

+6
-4
lines changed
  • src/shared/components/challenge-listing/ChallengeCard

2 files changed

+6
-4
lines changed

src/shared/components/challenge-listing/ChallengeCard/NumRegistrants/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ export default function NumRegistrants({
4444
>
4545
<Link
4646
onClick={() => (
47-
numRegistrants
48-
? selectChallengeDetailsTab(DETAIL_TABS.REGISTRANTS) : null
47+
selectChallengeDetailsTab(
48+
numRegistrants ? DETAIL_TABS.REGISTRANTS : DETAIL_TABS.DETAILS,
49+
)
4950
)}
5051
to={link}
5152
>

src/shared/components/challenge-listing/ChallengeCard/NumSubmissions/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ export default function NumSubmissions({
4444
>
4545
<Link
4646
onClick={() => (
47-
numSubmissions
48-
? selectChallengeDetailsTab(DETAIL_TABS.SUBMISSIONS) : null
47+
selectChallengeDetailsTab(
48+
numSubmissions ? DETAIL_TABS.SUBMISSIONS : DETAIL_TABS.DETAILS,
49+
)
4950
)}
5051
to={link}
5152
>

0 commit comments

Comments
 (0)