diff --git a/src/libs/actions/Timing.ts b/src/libs/actions/Timing.ts index 0cef2fe4d2b8..9e40f088f1c2 100644 --- a/src/libs/actions/Timing.ts +++ b/src/libs/actions/Timing.ts @@ -39,8 +39,8 @@ function end(eventName: string, secondaryName = '', maxExecutionTime = 0) { return; } + const {startTime, shouldUseFirebase} = timestampData[eventName]; Environment.getEnvironment().then((envName) => { - const {startTime, shouldUseFirebase} = timestampData[eventName]; const eventTime = Date.now() - startTime; if (shouldUseFirebase) {