Skip to content

Commit

Permalink
Merge pull request #33327 from Expensify/marco-fixTypeError
Browse files Browse the repository at this point in the history
Fix Uncaught (in promise) TypeError in Timing.ts

(cherry picked from commit f33d674)
  • Loading branch information
arosiclair authored and OSBotify committed Dec 20, 2023
1 parent 5ecb1aa commit 0140f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Timing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0140f39

Please sign in to comment.