From 9d20d088389250d8fbdd1f0dd6035715dc961629 Mon Sep 17 00:00:00 2001
From: Kima <kimavideos97@gmail.com>
Date: Sat, 7 Oct 2023 19:41:33 +0200
Subject: [PATCH] fixed goal planner done popup

---
 filcnaplo_premium/lib/providers/goal_provider.dart | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filcnaplo_premium/lib/providers/goal_provider.dart b/filcnaplo_premium/lib/providers/goal_provider.dart
index 86b981d..18f3244 100644
--- a/filcnaplo_premium/lib/providers/goal_provider.dart
+++ b/filcnaplo_premium/lib/providers/goal_provider.dart
@@ -22,7 +22,7 @@ class GoalProvider extends ChangeNotifier {
 
   Future<void> fetchDone({required GradeProvider gradeProvider}) async {
     var goalAvgs = await _db.userQuery.subjectGoalAverages(userId: _user.id!);
-    var beforeAvgs = await _db.userQuery.subjectGoalAverages(userId: _user.id!);
+    var beforeAvgs = await _db.userQuery.subjectGoalBefores(userId: _user.id!);
 
     List<Subject> subjects = gradeProvider.grades
         .map((e) => e.subject)