Skip to content

Commit 9873dfd

Browse files
committed
Minor formatting fix
1 parent 9a47542 commit 9873dfd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/commons/sagas/RequestsSaga.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ export const getPaginatedTotalXp = async (
496496
pageSize: number,
497497
tokens: Tokens
498498
): Promise<{ rows: LeaderboardRow[]; userCount: number } | null> => {
499-
const offset = (page - 1) * pageSize
500-
const params = new URLSearchParams({'offset': `${offset}`, 'page_size': `${pageSize}`});
499+
const offset = (page - 1) * pageSize;
500+
const params = new URLSearchParams({ offset: `${offset}`, page_size: `${pageSize}` });
501501
const resp = await request(`${courseId()}/get_paginated_display?${params.toString()}`, 'GET', {
502502
...tokens
503503
});
@@ -530,7 +530,7 @@ export const getContestScoreLeaderboard = async (
530530
visibleEntries: number,
531531
tokens: Tokens
532532
): Promise<ContestLeaderboardRow[] | null> => {
533-
const params = new URLSearchParams({'visible_entries': `${visibleEntries}`})
533+
const params = new URLSearchParams({ visible_entries: `${visibleEntries}` });
534534
const resp = await request(
535535
`${courseId()}/assessments/${assessmentId}/scoreLeaderboard?${params.toString()}`,
536536
'GET',
@@ -567,7 +567,7 @@ export const getContestPopularVoteLeaderboard = async (
567567
visibleEntries: number,
568568
tokens: Tokens
569569
): Promise<ContestLeaderboardRow[] | null> => {
570-
const params = new URLSearchParams({'visible_entries': `${visibleEntries}`})
570+
const params = new URLSearchParams({ visible_entries: `${visibleEntries}` });
571571
const resp = await request(
572572
`${courseId()}/assessments/${assessmentId}/popularVoteLeaderboard?${params.toString()}`,
573573
'GET',
@@ -1343,7 +1343,7 @@ export const getScoreLeaderboard = async (
13431343
visibleEntries: number | undefined,
13441344
tokens: Tokens
13451345
): Promise<ContestEntry[] | null> => {
1346-
const params = new URLSearchParams({'visible_entries': `${visibleEntries}`})
1346+
const params = new URLSearchParams({ visible_entries: `${visibleEntries}` });
13471347
const resp = await request(
13481348
`${courseId()}/admin/assessments/${assessmentId}/scoreLeaderboard?${params.toString()}`,
13491349
'GET',
@@ -1375,7 +1375,7 @@ export const getPopularVoteLeaderboard = async (
13751375
visibleEntries: number | undefined,
13761376
tokens: Tokens
13771377
): Promise<ContestEntry[] | null> => {
1378-
const params = new URLSearchParams({'visible_entries': `${visibleEntries}`})
1378+
const params = new URLSearchParams({ visible_entries: `${visibleEntries}` });
13791379
const resp = await request(
13801380
`${courseId()}/admin/assessments/${assessmentId}/popularVoteLeaderboard?${params.toString()}`,
13811381
'GET',

0 commit comments

Comments
 (0)