fix ai activity plan conversion and immediate goals refresh

This commit is contained in:
dimitar committed 2026-03-31 19:21:00 +02:00
1 parent e119f0923c
commit c877577fba
2 files changed
+36 -7

No files matched your search

+2 -2
View File
@@ -200,10 +200,10 @@ export default function GoalsScreen() {
try {
setIsGeneratingPlan(true);
await generateSelfPlan();
await refetchRecommendations();
await Promise.all([refetchRecommendations(), refetchGoals()]);
Alert.alert(
"Plan Ready",
"Your new AI activity plan has been generated.",
"Your new AI activity plan has been generated and active goals were added.",
);
} catch (error) {
const message =