prettier fixes #16
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
const supabase = useSupabaseAuthClient();
|
||||
const accountStore = useAccountStore();
|
||||
|
||||
onMounted(async () => {
|
||||
await accountStore.init()
|
||||
await accountStore.init();
|
||||
});
|
||||
|
||||
async function signout() {
|
||||
await supabase.auth.signOut();
|
||||
if(accountStore){
|
||||
if (accountStore) {
|
||||
accountStore.signout();
|
||||
}
|
||||
navigateTo('/', {replace: true});
|
||||
navigateTo('/', { replace: true });
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<a href="#" @click.prevent="signout()">Signout</a>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user