Skip to content

Commit 55db0d6

Browse files
committed
fix: issues #25, #24, #23, #22
1 parent eb57035 commit 55db0d6

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

config/dev.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ module.exports = {
1414
*/
1515
CONNECT_WEBSITE_URL: "https://connect.topcoder-dev.com",
1616

17-
AV_SCAN_SCORER_REVIEW_TYPE_ID: "68c5a381-c8ab-48af-92a7-7a869a4ee6c3",
18-
1917
SERVER_API_KEY: "79b2d5eb-c1fd-42c4-9391-6b2c9780d591",
2018
URL: {
2119
/* Connector URL of the TC accounts App. */
@@ -122,9 +120,9 @@ module.exports = {
122120
V2: "https://api.topcoder-dev.com/v2",
123121
},
124122
MOCK_TERMS_SERVICE: false,
125-
AV_SCAN_SCORER_REVIEW_TYPE_ID: "68c5a381-c8ab-48af-92a7-7a869a4ee6c3",
126-
PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID:
127-
"52c91e85-745f-4e62-b592-9879a2dfe9fd",
123+
124+
AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05",
125+
PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID: "df51ca7d-fb0a-4147-9569-992fcf5aae48",
128126
PAGE_SIZE: 50,
129127
REVIEW_OPPORTUNITY_PAGE_SIZE: 1000,
130128
CONTENTFUL: {

config/prod.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module.exports = {
1515
SERVER_API_KEY: "aa9ccf36-3936-450c-9983-097ddba51bef",
1616
CONNECT_WEBSITE_URL: "https://connect.topcoder.com",
1717

18-
AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05",
1918
URL: {
2019
ARENA: "https://arena.topcoder.com",
2120
APP: "https://community-app.topcoder.com",
@@ -75,8 +74,7 @@ module.exports = {
7574

7675
MOCK_TERMS_SERVICE: false,
7776
AV_SCAN_SCORER_REVIEW_TYPE_ID: "55bbb17d-aac2-45a6-89c3-a8d102863d05",
78-
PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID:
79-
"df51ca7d-fb0a-4147-9569-992fcf5aae48",
77+
PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID: "df51ca7d-fb0a-4147-9569-992fcf5aae48",
8078

8179
PAGE_SIZE: 50,
8280
REVIEW_OPPORTUNITY_PAGE_SIZE: 1000,

src/components/challenge-detail/Header/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export default function ChallengeHeader(props) {
416416
hasSubmissions && (
417417
<PrimaryButton
418418
theme={{ button: style.challengeAction }}
419-
to={`${challengesUrl}/${challengeId}/my-submissions`}
419+
to={`${config.URL.BASE}/challenges/${challengeId}/my-submissions`}
420420
>
421421
View Submissions
422422
</PrimaryButton>

src/components/challenge-detail/Submissions/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ class SubmissionsComponent extends React.Component {
734734
!hasRegistered || unregistering || submissionEnded || isLegacyMM
735735
}
736736
theme={{ button: style.challengeAction }}
737-
to={`${challengesUrl}/${challengeId}/submit`}
737+
to={`${config.URL.BASE}/${challengeId}/submit`}
738738
>
739739
Add Submission
740740
</PrimaryButton>

src/reducers/challenge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function onRegisterDone(state, action) {
306306
/* As a part of registration flow we silently update challenge details,
307307
* reusing for this purpose the corresponding action handler. Thus, we
308308
* should also reuse corresponding reducer to generate proper state. */
309-
return onGetDetailsDone(
309+
return onGetBasicDetailsDone(
310310
{
311311
...state,
312312
registering: false,
@@ -331,7 +331,7 @@ function onUnregisterDone(state, action) {
331331
/* As a part of unregistration flow we silently update challenge details,
332332
* reusing for this purpose the corresponding action handler. Thus, we
333333
* should also reuse corresponding reducer to generate proper state. */
334-
return onGetDetailsDone(
334+
return onGetBasicDetailsDone(
335335
{
336336
...state,
337337
unregistering: false,

0 commit comments

Comments
 (0)