Skip to content

Commit 3d50a58

Browse files
committed
Remove testing
1 parent 3551be4 commit 3d50a58

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jam-25/src/components/Score.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ const Score = ({ score, target, round, turnScore }) => {
99
<Typography variant='overline' sx={{ fontFamily: 'Orbitron' }}>Round {round}</Typography>
1010
<Box sx={{ display: 'flex', justifyContent: 'flex-start', alignItems: 'center', flexWrap: 'wrap' }}>
1111
<Typography variant='h4' sx={{ mr: 1, fontSize: matches ? `${Math.max(Math.min(30 / (score?.toString().length ?? 1) * 2 + 5, 25), 14)}px` : undefined, color: score >= target ? '#11adab' : (score < 0 ? 'rgb(158, 8, 28)' : '#5a6363'), fontFamily: 'Orbitron' }}>{score}</Typography>
12-
{/* {
13-
turnScore != null && ( */}
14-
<Typography variant='h5' sx={{ fontSize: matches ? `${Math.max(Math.min(30 / (turnScore?.toString().length ?? 1) * 2, 16), 12)}px` : undefined, color: turnScore + score >= target ? '#11adab' : (turnScore < 0 ? 'rgb(158, 8, 28)' : '#5a6363'), fontFamily: 'Orbitron' }}>{turnScore >= 0 ? '+' : ''} {turnScore}100</Typography>
15-
{/* )
16-
} */}
12+
{
13+
turnScore != null && (
14+
<Typography variant='h5' sx={{ fontSize: matches ? `${Math.max(Math.min(30 / (turnScore?.toString().length ?? 1) * 2, 16), 12)}px` : undefined, color: turnScore + score >= target ? '#11adab' : (turnScore < 0 ? 'rgb(158, 8, 28)' : '#5a6363'), fontFamily: 'Orbitron' }}>{turnScore >= 0 ? '+' : ''} {turnScore}</Typography>
15+
)
16+
}
1717
</Box>
1818
</Box>
1919
<Box className="target" sx={{ height: '100%', display: 'flex', flexDirection: 'column', alignItems: 'flex-end' }}>

0 commit comments

Comments
 (0)