16679: Adds test on action dispatching when using the Logout menu item.
[arvados-workbench2.git] / src / store / auth / auth-action.ts
index 1060ec708dcaab8cd9a0e39235bc769e4c1ed841..15fe3d4d591da9e00ef356ac591726060a8e76a3 100644 (file)
@@ -97,8 +97,8 @@ export const login = (uuidPrefix: string, homeCluster: string, loginCluster: str
         dispatch(authActions.LOGIN());
     };
 
-export const logout = (deleteLinkData: boolean = false) => (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
-    dispatch(authActions.LOGOUT({ deleteLinkData }));
-};
+export const logout = (deleteLinkData: boolean = false) =>
+    (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) =>
+        dispatch(authActions.LOGOUT({ deleteLinkData }));
 
 export type AuthAction = UnionOf<typeof authActions>;