Compare commits
1 Commits
0c731943e6
...
7fb2d4ed1a
Author | SHA1 | Date | |
---|---|---|---|
7fb2d4ed1a |
@ -43,13 +43,9 @@ export function BaseAuthenticatedPage(): React.ReactElement {
|
|||||||
setAnchorEl(null);
|
setAnchorEl(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
const signOut = async () => {
|
const signOut = () => {
|
||||||
handleCloseMenu();
|
handleCloseMenu();
|
||||||
try {
|
AuthApi.SignOut();
|
||||||
await AuthApi.SignOut();
|
|
||||||
} catch (e) {
|
|
||||||
console.error(e);
|
|
||||||
}
|
|
||||||
navigate("/");
|
navigate("/");
|
||||||
auth.setSignedIn(false);
|
auth.setSignedIn(false);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user