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

Commit 2b39df4

Browse files
author
vikasrohit
committed
AS#112412760157010, Marathon Match link broken on Dashboard (for both challenge page and submissions)
-- rough draft for the fix.
1 parent 6193820 commit 2b39df4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/filters/challengeLinks.filter.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ import angular from 'angular'
2121
case 'registrants':
2222
return String.supplant('https://community.{domain}/longcontest/?module=ViewRegistrants&rd={roundId}', data)
2323
case 'detail':
24-
return String.supplant('https://community.{domain}/longcontest/stats/?module=ViewOverview&rd={roundId}', data)
24+
if (challenge.status === 'PAST') {
25+
return String.supplant('https://community.{domain}/longcontest/stats/?module=ViewOverview&rd={roundId}', data)
26+
} else { // for all other statues (ACTIVE, UPCOMING), show the problem statement
27+
return String.supplant('https://community.{domain}/longcontest/?module=ViewProblemStatement&rd={roundId}', data)
28+
}
2529
}
2630
} else {
2731
data = {

0 commit comments

Comments
 (0)