From e2380b7d0d85759e0698d57bbc2ec2956031dfd9 Mon Sep 17 00:00:00 2001 From: TzeYiing Date: Wed, 12 Oct 2022 10:08:40 +0800 Subject: [PATCH] fix: add maniual localstorage clearing --- studio/components/layouts/AccountLayout/AccountLayout.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/studio/components/layouts/AccountLayout/AccountLayout.tsx b/studio/components/layouts/AccountLayout/AccountLayout.tsx index 24dfbbaa732..1bbcd7a941d 100644 --- a/studio/components/layouts/AccountLayout/AccountLayout.tsx +++ b/studio/components/layouts/AccountLayout/AccountLayout.tsx @@ -27,6 +27,7 @@ const AccountLayout: FC = ({ children, title, breadcrumbs }) => { const onClickLogout = async () => { await auth.signOut() + localStorage.clear(); router.reload() }