Skip to content

Commit

Permalink
Update App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung authored Jan 1, 2024
1 parent e33428b commit 7d82e40
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,11 @@ const TeamGames = ({ teamId, limit }: { teamId: string; limit: number }) => {
{row.score} - {row.opponent.score}
</TableCell>
<TableCell align="right">
{row.result === 'W' && '+'}
{row.result === 'L' && '-'}
{row.delta.toFixed(1)}{' '}
<span style={{ color: row.result === 'L' ? 'red' : 'green' }}>
{row.result === 'W' && '+'}
{row.result === 'L' && '-'}
{row.delta.toFixed(1)}{' '}
</span>
</TableCell>
</TableRow>
))}
Expand Down Expand Up @@ -544,7 +546,7 @@ const Games = () => {
<TableCell align="right" style={{ whiteSpace: 'nowrap' }}>
{row.teams[0].score} - {row.teams[1].score}
</TableCell>
<TableCell align="right">±{Math.floor(row.delta)}</TableCell>
<TableCell align="right">±{row.delta.toFixed(1)}</TableCell>
</TableRow>
))}
</TableBody>
Expand Down

0 comments on commit 7d82e40

Please sign in to comment.