From 7c6d6c9c30f0a6c6c6e33e8e63d3aad65c7b1c0e Mon Sep 17 00:00:00 2001
From: Flymax
Date: Mon, 29 Jun 2020 01:00:40 +0900
Subject: [PATCH] Bug fixes: logout
---
cvat-ui/src/containers/header/header.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cvat-ui/src/containers/header/header.tsx b/cvat-ui/src/containers/header/header.tsx
index 59dc3f02..ed0e55f6 100644
--- a/cvat-ui/src/containers/header/header.tsx
+++ b/cvat-ui/src/containers/header/header.tsx
@@ -32,7 +32,7 @@ interface StateToProps {
}
interface DispatchToProps {
- onLogout: typeof logoutAsync;
+ onLogout: () => void;
switchSettingsDialog: (show: boolean) => void;
}
@@ -80,7 +80,7 @@ function mapStateToProps(state: CombinedState): StateToProps {
function mapDispatchToProps(dispatch: any): DispatchToProps {
return {
- onLogout: logoutAsync,
+ onLogout: (): void => dispatch(logoutAsync()),
switchSettingsDialog: (show: boolean): void => dispatch(switchSettingsDialog(show)),
};
}