File tree Expand file tree Collapse file tree
app/pages/profile/[handle] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,12 +48,13 @@ async function updateProfile() {
4848 website: websiteInput .value ,
4949 })
5050
51- if (! result .success ) {
51+ if (result .success ) {
52+ isEditing .value = false
53+ } else {
5254 profile .value = currentProfile
5355 }
5456
5557 isUpdateProfileActionPending .value = false
56- isEditing .value = false
5758 } catch (e ) {
5859 profile .value = currentProfile
5960 isUpdateProfileActionPending .value = false
@@ -158,17 +159,16 @@ defineOgImageComponent('Default', {
158159 dir =" ltr"
159160 >
160161 {{ $t('profile.likes') }}
161- <span v-if =" likesData" >({{ likesData.likes.records.length ?? 0 }})</span >
162+ <span v-if =" likesData" >({{ likesData.likes? .records? .length ?? 0 }})</span >
162163 </h2 >
163164 <div v-if =" status === 'pending'" >
164165 <p >{{ $t('common.loading') }}</p >
165166 </div >
166167 <div v-else-if =" status === 'error'" >
167168 <p >{{ $t('common.error') }}</p >
168169 </div >
169- <div v-else-if =" likesData.likes.records" class =" grid grid-cols-1 lg:grid-cols-2 gap-4" >
170+ <div v-else-if =" likesData? .likes? .records" class =" grid grid-cols-1 lg:grid-cols-2 gap-4" >
170171 <PackageLikeCard
171- v-if =" likesData.likes.records"
172172 v-for =" like in likesData.likes.records"
173173 :packageUrl =" like.value.subjectRef"
174174 />
You can’t perform that action at this time.
0 commit comments