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)), }; }