Fix cancelled vs. delayed card

Fixes https://discord.com/channels/1111649116020285532/1154687576758829097
Implements 9845a35 from `cancelled-bugfix` branch
Deletes `cancelled-bugfix` branch
This commit is contained in:
Pearoo 2023-10-10 07:01:57 +02:00
parent f95d4582be
commit 1d5ebe7bbd

View File

@ -57,9 +57,9 @@ class ChangedLessonTile extends StatelessWidget {
),
),
title: Text(
lesson.substituteTeacher?.name != "" || lesson.substituteTeacher?.name != null
? "substituted".i18n
: "cancelled".i18n,
lesson.status?.name == "Elmaradt" && lesson.substituteTeacher?.name != ""
? "cancelled".i18n
: "substituted".i18n,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: const TextStyle(fontWeight: FontWeight.w600),