From 1d5ebe7bbdd82684582928eaf9f2d6466e78f54b Mon Sep 17 00:00:00 2001 From: Pearoo Date: Tue, 10 Oct 2023 07:01:57 +0200 Subject: [PATCH] Fix cancelled vs. delayed card Fixes https://discord.com/channels/1111649116020285532/1154687576758829097 Implements 9845a35 from `cancelled-bugfix` branch Deletes `cancelled-bugfix` branch --- .../lib/common/widgets/lesson/changed_lesson_tile.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filcnaplo_mobile_ui/lib/common/widgets/lesson/changed_lesson_tile.dart b/filcnaplo_mobile_ui/lib/common/widgets/lesson/changed_lesson_tile.dart index 7125d2b..4b2b485 100755 --- a/filcnaplo_mobile_ui/lib/common/widgets/lesson/changed_lesson_tile.dart +++ b/filcnaplo_mobile_ui/lib/common/widgets/lesson/changed_lesson_tile.dart @@ -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),