Skip to content

Commit 022446b

Browse files
author
Adriána Kohanová
committed
#486 Sessions don't restore, whether logged in or anonymous - authentication issue?
1 parent 44fdd42 commit 022446b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/reducers/tracking/dispatchActions.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2102,11 +2102,11 @@ const isActionWithinTimeLimit = (firstAction, secondAction) => {
21022102
return diffInSeconds <= NUM_OF_SECONDS_TO_IGNORE_MERGE;
21032103
};
21042104

2105-
export const manageSendTrackingActions = (projectID, copy) => (dispatch, getState) => {
2105+
export const manageSendTrackingActions = (projectID, copy) => async (dispatch, getState) => {
21062106
if (copy) {
2107-
dispatch(checkActionsProject(projectID));
2107+
await dispatch(checkActionsProject(projectID));
21082108
} else {
2109-
dispatch(checkSendTrackingActions(true));
2109+
await dispatch(checkSendTrackingActions(true));
21102110
}
21112111
};
21122112

0 commit comments

Comments
 (0)