diff --git a/frontend/src/components/child/ChildView.vue b/frontend/src/components/child/ChildView.vue index 4628fed..b92c0fd 100644 --- a/frontend/src/components/child/ChildView.vue +++ b/frontend/src/components/child/ChildView.vue @@ -243,6 +243,7 @@ const triggerTask = async (task: ChildTask) => { } const handleRoutineClick = (routine: ChildRoutine) => { + if (isRoutineExpired(routine) || routine.pending_status === 'approved') return dialogRoutine.value = routine setTimeout(() => { showRoutineOverlay.value = true @@ -733,6 +734,7 @@ onUnmounted(() => { PENDING + TOO LATE APPROVED