From 8dac2bbea54837409cc982836505612ef994dedd Mon Sep 17 00:00:00 2001 From: amandesai01 Date: Tue, 10 Sep 2024 19:26:28 +0530 Subject: [PATCH] fix(auth): fix no session bug --- app/components/admin/MemberCard.vue | 2 +- app/composables/auth.ts | 4 ++-- app/composables/state.ts | 2 +- app/middleware/admin-auth.ts | 2 +- app/pages/admin/dashboard.vue | 2 +- server/api/userinfo.ts | 3 ++- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/components/admin/MemberCard.vue b/app/components/admin/MemberCard.vue index f1569ed..d85a64e 100644 --- a/app/components/admin/MemberCard.vue +++ b/app/components/admin/MemberCard.vue @@ -29,7 +29,7 @@ const onRemove = () => { title="Remove Member?" confirmLabel="Remove" content="Member's access will be immediatly disabled. No actions performed by member will be reverted." - v-if="profile.id != member.id" + v-if="profile?.id != member.id" >