Skip to content

Commit 5ca9560

Browse files
committed
Fix frontend linking issue with undefined participant query param
1 parent 2c73168 commit 5ca9560

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/services/common.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ export async function generateLeaderboardPageOptions(
113113
filters.push({
114114
field: 'participants',
115115
operator: 'eq',
116-
value: Number(actualParticipants),
116+
value:
117+
actualParticipants === '__undefined'
118+
? actualParticipants
119+
: Number(actualParticipants),
117120
})
118121

119122
if (isSoloPersonalBest !== undefined) {

0 commit comments

Comments
 (0)