From 0f10c353a88cdadf012e2f8dfabc57f4bd270e87 Mon Sep 17 00:00:00 2001 From: murjune Date: Sat, 1 Feb 2025 05:08:16 +0900 Subject: [PATCH] chore: add variant --- .../dobedobe/feature/dashboard/DashboardViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feature/dashboard/src/main/kotlin/com/chipichipi/dobedobe/feature/dashboard/DashboardViewModel.kt b/feature/dashboard/src/main/kotlin/com/chipichipi/dobedobe/feature/dashboard/DashboardViewModel.kt index ac706761..d746e4ca 100644 --- a/feature/dashboard/src/main/kotlin/com/chipichipi/dobedobe/feature/dashboard/DashboardViewModel.kt +++ b/feature/dashboard/src/main/kotlin/com/chipichipi/dobedobe/feature/dashboard/DashboardViewModel.kt @@ -175,7 +175,8 @@ internal class DashboardViewModel( .distinctUntilChanged() .distinctUntilChanged { _, new -> val id = bubbleGoal.value.id - new.any { it.id == id } + val isBubbleGoalCompleted = new.any { it.id == id } + isBubbleGoalCompleted } return combine(