From c122eb4ff9a9fc1879a68434a4ea9c0b2254e3df Mon Sep 17 00:00:00 2001 From: balint1414 Date: Fri, 17 Oct 2025 20:38:11 +0200 Subject: [PATCH] asszem hiba fix --- firka/lib/ui/phone/widgets/home_main_welcome.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firka/lib/ui/phone/widgets/home_main_welcome.dart b/firka/lib/ui/phone/widgets/home_main_welcome.dart index bb3124f7..13d4aee7 100644 --- a/firka/lib/ui/phone/widgets/home_main_welcome.dart +++ b/firka/lib/ui/phone/widgets/home_main_welcome.dart @@ -87,7 +87,7 @@ class _WelcomeWidgetState extends State { final birthDate = DateFormat("MM-dd").format(widget.student.birthdate); if (birthDate == DateFormat("MM-dd").format(widget.now)) { return widget.l10n.happy_birthday(name); - } else if (widget.now.isBefore(widget.lessons.first.start)) { + } else if (widget.lessons.length > 1 &&widget.now.isBefore(widget.lessons.first.start)) { return getRawTitle(name, dayCycle); } else { return getRawTitle(name, dayCycle);