diff --git a/EditPlan.tsx b/EditPlan.tsx index 3152d37..75fef0c 100644 --- a/EditPlan.tsx +++ b/EditPlan.tsx @@ -41,7 +41,7 @@ export default function EditPlan({ useEffect(() => { refresh(); - }, [plan]); + }, [plan, show]); const save = async () => { if (!days || !workouts) return;