refac
This commit is contained in:
1 parent
039976ef24
commit
df495a7945
1 file changed
-1
@@ -571,7 +571,6 @@
|
|||||||
type="button"
|
type="button"
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
const res = await userSignOut();
|
const res = await userSignOut();
|
||||||
user.set(null);
|
|
||||||
localStorage.removeItem('token');
|
localStorage.removeItem('token');
|
||||||
|
|
||||||
location.href = res?.redirect_url ?? '/auth';
|
location.href = res?.redirect_url ?? '/auth';
|
||||||
|
|||||||
Reference in new issue
Block a user