chore: fix logout console error (#196)
This commit is contained in:
@@ -10,7 +10,10 @@
|
|||||||
|
|
||||||
async function logout() {
|
async function logout() {
|
||||||
const { error } = await supabase.auth.signOut();
|
const { error } = await supabase.auth.signOut();
|
||||||
console.error('Error logging out: ', error);
|
|
||||||
|
if (error) {
|
||||||
|
console.error('Error logging out: ', error);
|
||||||
|
}
|
||||||
|
|
||||||
currentOrg.set(defaultCurrentOrgState);
|
currentOrg.set(defaultCurrentOrgState);
|
||||||
orgs.set([]);
|
orgs.set([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user