From b7ca65780d74c1d0234c599da9b029ec5263f8fa Mon Sep 17 00:00:00 2001 From: syt0r Date: Thu, 5 Sep 2024 10:30:22 +0300 Subject: [PATCH] Hide daily streak increase indicator when streak is 0 --- .../home/screen/general_dashboard/GeneralDashboardScreenUI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/commonMain/kotlin/ua/syt0r/kanji/presentation/screen/main/screen/home/screen/general_dashboard/GeneralDashboardScreenUI.kt b/core/src/commonMain/kotlin/ua/syt0r/kanji/presentation/screen/main/screen/home/screen/general_dashboard/GeneralDashboardScreenUI.kt index 1650bdfe..f5316d01 100644 --- a/core/src/commonMain/kotlin/ua/syt0r/kanji/presentation/screen/main/screen/home/screen/general_dashboard/GeneralDashboardScreenUI.kt +++ b/core/src/commonMain/kotlin/ua/syt0r/kanji/presentation/screen/main/screen/home/screen/general_dashboard/GeneralDashboardScreenUI.kt @@ -318,7 +318,7 @@ fun GeneralDashboardScreenUI( modifier = Modifier.weight(1f) ) - if (it.currentStreak >= it.longestStreak) { + if (it.currentStreak >= it.longestStreak && it.currentStreak != 0) { Icon(Icons.AutoMirrored.Filled.TrendingUp, null) } }