Skip to content

Commit

Permalink
#486 Sessions don't restore, whether logged in or anonymous - authent…
Browse files Browse the repository at this point in the history
…ication issue?
  • Loading branch information
Adriána Kohanová committed Jan 26, 2021
1 parent 44fdd42 commit 022446b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/reducers/tracking/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2102,11 +2102,11 @@ const isActionWithinTimeLimit = (firstAction, secondAction) => {
return diffInSeconds <= NUM_OF_SECONDS_TO_IGNORE_MERGE;
};

export const manageSendTrackingActions = (projectID, copy) => (dispatch, getState) => {
export const manageSendTrackingActions = (projectID, copy) => async (dispatch, getState) => {
if (copy) {
dispatch(checkActionsProject(projectID));
await dispatch(checkActionsProject(projectID));
} else {
dispatch(checkSendTrackingActions(true));
await dispatch(checkSendTrackingActions(true));
}
};

Expand Down

0 comments on commit 022446b

Please sign in to comment.