fix: 🐛 Småfixar i schemat

This commit is contained in:
Kajetan Kazimierczak 2021-09-16 13:26:40 +02:00
parent b7a732d21b
commit 2c770c08fb
1 changed files with 4 additions and 5 deletions

View File

@ -63,12 +63,11 @@ const LessonList = ({ lessons, header, lunch }: LessonListProps) => {
<Text
style={styles.lessonDescription}
maxFontSizeMultiplier={1}
>{`${timeStart.slice(0, 5)}-${timeEnd.slice(
0,
5
)} (${location})`}</Text>
>{`${timeStart.slice(0, 5)}-${timeEnd.slice(0, 5)} ${
location === '' ? '' : '(' + location + ')'
} `}</Text>
<Text style={styles.lessonDescription} maxFontSizeMultiplier={1}>
{code === 'Lunch' ? lunch?.description : teacher}
{code?.toUpperCase() === 'LUNCH' ? lunch?.description : teacher}
</Text>
</View>
)}