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

Commit 81442a1

Browse files
Merge branch 'develop' of github.com:topcoder-platform/leaderboard-ui into develop
2 parents 5c1fb56 + 64191c2 commit 81442a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pages/winners.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { checkForMainSponsor } from '../common/helper'
1111
const rowSize = {
1212
4: [1, 2, 1],
1313
5: [2, 1, 2],
14+
4: [2, 2, 0],
1415
7: [2, 3, 2],
1516
8: [3, 2, 3],
1617
9: [2, 3, 4],
@@ -187,6 +188,10 @@ const cardLayout = (profile, primaryColor, position, length) => {
187188
const finalistsLayout = (profiles, props) => {
188189
const { primaryColor, finalists, prizes } = props
189190
const rows = rowSize[profiles.length]
191+
192+
console.log(profiles)
193+
console.log(rows.length)
194+
190195
const row1 = profiles.slice(0, rows[0])
191196
const row2 = profiles.slice(rows[0], rows[0] + rows[1])
192197
const row3 = profiles.slice(rows[0] + rows[1])

0 commit comments

Comments
 (0)