From ea3b42891465e34be7684c85f113d0cd76107743 Mon Sep 17 00:00:00 2001 From: Prasanna Anbazhagan Date: Tue, 2 Jan 2024 12:11:25 +0530 Subject: [PATCH] bug fix --- lib/domain/models/goal.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/domain/models/goal.dart b/lib/domain/models/goal.dart index 5595ad0..1b4e96a 100644 --- a/lib/domain/models/goal.dart +++ b/lib/domain/models/goal.dart @@ -62,6 +62,9 @@ class Goal { double getProgress() { double progress = targetAmount > 0 ? getFutureValueOnTargetDate() / targetAmount : 0; + if (progress > 1) { + return 1; + } return progress; }