From 60b28097ad3625e39bd41a57206bfbdc204db3bf Mon Sep 17 00:00:00 2001 From: Yusuf Suleman Date: Fri, 3 Apr 2026 12:27:53 -0500 Subject: [PATCH] fix: getGoalsForDate method name, non-optional goal Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Features/Fitness/ViewModels/GoalsViewModel.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ios/Platform/Platform/Features/Fitness/ViewModels/GoalsViewModel.swift b/ios/Platform/Platform/Features/Fitness/ViewModels/GoalsViewModel.swift index b8d1926..37f2cbc 100644 --- a/ios/Platform/Platform/Features/Fitness/ViewModels/GoalsViewModel.swift +++ b/ios/Platform/Platform/Features/Fitness/ViewModels/GoalsViewModel.swift @@ -45,8 +45,9 @@ final class GoalsViewModel { ) try await api.updateGoals(request) // Reload goals to get the full updated object - goal = try await api.getGoals(date: Date().apiDateString) - populateFields(from: goal) + let updated = try await api.getGoalsForDate(date: Date().apiDateString) + goal = updated + populateFields(from: updated) saveSuccess = true } catch { self.error = error.localizedDescription