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
  • Loading branch information
arosiclair authored Dec 20, 2023
2 parents 341848a + a41803e commit f33d674
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 f33d674

Please sign in to comment.