@@ -6,10 +6,6 @@ const { currentState } = useAppState();
6
6
definePageMeta ({
7
7
middleware: [' require-auth' ]
8
8
});
9
-
10
- const { status } = useFetch (' /api/family/myFamily' , {
11
- lazy: false
12
- });
13
9
</script >
14
10
15
11
<template >
@@ -57,14 +53,11 @@ const { status } = useFetch('/api/family/myFamily', {
57
53
</CardDetails >
58
54
<CardDetails v-else >
59
55
<strong >Parent's survey & proposals. [CLOSED]</strong >
60
- <CardText v-if = " status == 'success' " >
56
+ <CardText >
61
57
Visit your
62
58
<NuxtLink to =" /family" >family page</NuxtLink >
63
59
to see your family details.
64
60
</CardText >
65
- <CardText v-else-if =" status == 'error'" >
66
- Sorry, we could not fetch your family details. Please try again.
67
- </CardText >
68
61
</CardDetails >
69
62
</div >
70
63
<div v-else-if =" currentState == 'freshers_open'" >
@@ -78,14 +71,11 @@ const { status } = useFetch('/api/family/myFamily', {
78
71
</CardDetails >
79
72
<CardDetails v-else >
80
73
<strong >Parent's survey & proposals. [CLOSED]</strong >
81
- <CardText v-if = " status == 'success' " >
74
+ <CardText >
82
75
Visit your
83
76
<NuxtLink to =" /family" >family page</NuxtLink >
84
77
to see your family details.
85
78
</CardText >
86
- <CardText v-else-if =" status == 'error'" >
87
- Sorry, we could not fetch your family details. Please try again.
88
- </CardText >
89
79
</CardDetails >
90
80
</div >
91
81
<div v-else-if =" currentState == 'closed'" >
@@ -98,14 +88,11 @@ const { status } = useFetch('/api/family/myFamily', {
98
88
}}
99
89
[CLOSED]
100
90
</strong >
101
- <CardText v-if = " status == 'success' " >
91
+ <CardText >
102
92
Visit your
103
93
<NuxtLink to =" /family" >family page</NuxtLink >
104
94
to see your family details.
105
95
</CardText >
106
- <CardText v-else-if =" status == 'error'" >
107
- Sorry, we could not fetch your family details. Please try again.
108
- </CardText >
109
96
</CardDetails >
110
97
</div >
111
98
</div >
0 commit comments