Bug fixes: logout

main
Flymax 6 years ago
parent 962f61fa27
commit 7c6d6c9c30

@ -32,7 +32,7 @@ interface StateToProps {
} }
interface DispatchToProps { interface DispatchToProps {
onLogout: typeof logoutAsync; onLogout: () => void;
switchSettingsDialog: (show: boolean) => void; switchSettingsDialog: (show: boolean) => void;
} }
@ -80,7 +80,7 @@ function mapStateToProps(state: CombinedState): StateToProps {
function mapDispatchToProps(dispatch: any): DispatchToProps { function mapDispatchToProps(dispatch: any): DispatchToProps {
return { return {
onLogout: logoutAsync, onLogout: (): void => dispatch(logoutAsync()),
switchSettingsDialog: (show: boolean): void => dispatch(switchSettingsDialog(show)), switchSettingsDialog: (show: boolean): void => dispatch(switchSettingsDialog(show)),
}; };
} }

Loading…
Cancel
Save