From 0140f390ffce670b6087cd96882eabf7bf5e158f Mon Sep 17 00:00:00 2001 From: Andrew Rosiclair Date: Wed, 20 Dec 2023 11:21:58 -0500 Subject: [PATCH] Merge pull request #33327 from Expensify/marco-fixTypeError Fix Uncaught (in promise) TypeError in Timing.ts (cherry picked from commit f33d6743ca6078f8930ee00f32e3b6649ad716bf) --- src/libs/actions/Timing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {