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

Commit de49bc5

Browse files
Merge pull request #68 from topcoder-platform/1-1-stats
Show dynamic stats in 1-1 page
2 parents b351e3c + a12bc73 commit de49bc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/1-on-1.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ import Sponsors from '../components/Sponsors'
99
import FinalistTable from '../components/FinalistTable'
1010
import { hexToName, prepareLeaderboard, checkForMainSponsor } from '../common/helper'
1111

12-
const DETAILS = ['rating', 'rank', 'percentile', 'competitions', 'volatility']
12+
// const DETAILS = ['rating', 'rank', 'percentile', 'competitions', 'volatility']
13+
const omit = ['handle', 'country', 'profilePic', 'countryFlag']
1314

1415
const detailLayout = (props) => {
1516
const { challengee, challenger, primaryColor } = props
17+
const DETAILS = Object.keys(challenger).filter(f => !omit.includes(f))
1618
return (
1719
<div className='container'>
1820
<div className='profilePicContainer'>

0 commit comments

Comments
 (0)