Logout invalidate
This commit is contained in:
parent
ff0e192768
commit
0929371c10
Binary file not shown.
@ -50,8 +50,8 @@ const UserMenu: FC<Props> = ({ anchorEl, handleClose }) => {
|
||||
</MenuItem>,
|
||||
<MenuItem
|
||||
key="logout"
|
||||
onClick={() => {
|
||||
Api.logOut();
|
||||
onClick={async () => {
|
||||
await Api.logOut();
|
||||
router.invalidate();
|
||||
handleClose();
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user