From 022446bfe796cc913bfb1602a7894806f36deb04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1na=20Kohanov=C3=A1?= Date: Tue, 26 Jan 2021 13:57:23 +0100 Subject: [PATCH] #486 Sessions don't restore, whether logged in or anonymous - authentication issue? --- js/reducers/tracking/dispatchActions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/reducers/tracking/dispatchActions.js b/js/reducers/tracking/dispatchActions.js index 1cb63ed6f..0c9fb5455 100644 --- a/js/reducers/tracking/dispatchActions.js +++ b/js/reducers/tracking/dispatchActions.js @@ -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)); } };