15088: Handles browser navigation during link account ops
[arvados-workbench2.git] / src / store / auth / auth-action.ts
index 1198ff8dba40569693937a6a8f13b74dd4c5a76a..8be02ed02ab426dae71000ee1aca3295510f15e4 100644 (file)
@@ -80,7 +80,7 @@ export const login = (uuidPrefix: string, homeCluster: string) => (dispatch: Dis
 
 export const logout = (deleteLinkData: boolean = false) => (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
     if (deleteLinkData) {
-        services.linkAccountService.removeFromSession();
+        services.linkAccountService.removeAccountToLink();
     }
     services.authService.removeApiToken();
     services.authService.removeUser();