Skip to content

Commit

Permalink
Remove place from MC optional awards
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmeshulam committed Feb 2, 2025
1 parent 7dadefc commit 3699f01
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions apps/frontend/components/mc/awards-lineup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import { WithId } from 'mongodb';
import { IconButton, Box, Paper, Stack, Typography } from '@mui/material';
import EastRoundedIcon from '@mui/icons-material/EastRounded';
import WestRoundedIcon from '@mui/icons-material/WestRounded';
import { Team, Award, DivisionWithEvent } from '@lems/types';
import {
Team,
Award,
DivisionWithEvent,
CoreValuesAwardsTypes,
CoreValuesAwards
} from '@lems/types';
import { localizedAward } from '@lems/season';
import Markdown from 'react-markdown';
import { localizeTeam } from '../../localization/teams';
Expand Down Expand Up @@ -47,7 +53,9 @@ const AwardsLineup: React.FC<AwardsLineupProps> = ({ division, awards }) => {
{sortedAwards.map(award => {
return (
<Typography fontSize="1.75rem" key={award.name + award.place} gutterBottom>
{sortedAwards.length > 1 && 'במקום ה-' + award.place + ': '}
{sortedAwards.length > 1 &&
!CoreValuesAwardsTypes.includes(award.name as CoreValuesAwards) &&
'במקום ה-' + award.place + ': '}
{award.winner
? typeof award.winner === 'string'
? award.winner
Expand Down

0 comments on commit 3699f01

Please sign in to comment.