Process accountLogin everytime there is a privateId set in the URL and that privateId differs from the old privateId
@@ -271,8 +271,7 @@ function reactToPrivateIdChanges(
return Promise.resolve();
}
- // v--- do any login-actions only when privateId is added after initialPageLoad. The latter should handle any necessary logins itself.
- if (!state.getIn(["process", "processingInitialLoad"])) {
+ //If there is a toPrivateId param and it is different than the old one we process a login for that privateId regardless
if (toPrivateId && fromPrivateId !== toPrivateId) {
// privateId has changed or was added
const credentials = { privateId: toPrivateId };
@@ -280,7 +279,6 @@ function reactToPrivateIdChanges(
return accountLogin(credentials, options)(dispatch, getState);
}
}
-}
/**
* Merges any "constant"-parameters (e.g. `privateId`) that are contained in `paramsInState`
