Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
praslnx8 committed Jan 2, 2024
1 parent 2e98e6a commit ea3b428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/domain/models/goal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class Goal {
double getProgress() {
double progress =
targetAmount > 0 ? getFutureValueOnTargetDate() / targetAmount : 0;
if (progress > 1) {
return 1;
}
return progress;
}

Expand Down

0 comments on commit ea3b428

Please sign in to comment.