Logout invalidate

This commit is contained in:
Kilian Hofmann 2024-07-26 16:14:45 +02:00
parent ff0e192768
commit 0929371c10
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -50,8 +50,8 @@ const UserMenu: FC<Props> = ({ anchorEl, handleClose }) => {
</MenuItem>, </MenuItem>,
<MenuItem <MenuItem
key="logout" key="logout"
onClick={() => { onClick={async () => {
Api.logOut(); await Api.logOut();
router.invalidate(); router.invalidate();
handleClose(); handleClose();
}} }}