Skip to content

Commit d26e047

Browse files
committed
Remove console.log statements from leaderboard saga and components
1 parent 95563ef commit d26e047

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/commons/sagas/LeaderboardSaga.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ const LeaderboardSaga = combineSagaHandlers(LeaderboardActions, {
4747
const tokens: Tokens = yield selectTokens();
4848

4949
const contests = yield call(getAllContests, tokens);
50-
console.log(contests, 'rows');
5150

5251
if (contests) {
5352
yield put(actions.saveContests(contests));

src/pages/leaderboard/subcomponents/ContestLeaderboard.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ const ContestLeaderboard: React.FC<Props> = ({ type, contestID }) => {
3737
type === 'score' ? store.leaderboard.contestScore : store.leaderboard.contestPopularVote
3838
);
3939

40+
console.log(rankedLeaderboard);
41+
4042
useEffect(() => {
4143
if (type === 'score') {
4244
dispatch(LeaderboardActions.getAllContestScores(contestID));

src/pages/leaderboard/subcomponents/ContestLeaderboardWrapper.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const ContestLeaderboardWrapper: React.FC = () => {
2020
dispatch(LeaderboardActions.getContests());
2121
}, [dispatch]);
2222

23-
console.log("CONTEST ASSESSMENTS" + contestAssessments);
2423
const defaultContest =
2524
contestAssessments?.find(
2625
assessment => assessment.published
@@ -92,13 +91,10 @@ const ContestLeaderboardWrapperHelper: React.FC<{
9291
}
9392
}
9493

95-
console.log("HERE" + id);
96-
console.log("CONTEST DETAILS1" + contestDetails);
9794
if (!contestDetails.length) {
9895
// Wait for contestDetails to load
9996
return null;
10097
}
101-
console.log("CONTEST DETAILS" + contestDetails);
10298
const contest = contestDetails.find(contest => contest.contest_id === parseInt(id ?? '', 10));
10399

104100
return contest !== undefined && contest.published ? (

0 commit comments

Comments
 (0)