Skip to content

Commit 4cacb3d

Browse files
committed
add comment to markSubmitExpenseEnd call
1 parent 494be11 commit 4cacb3d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pages/iou/request/step/IOURequestStepConfirmation.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,8 @@ function IOURequestStepConfirmation({
10271027
},
10281028
});
10291029

1030+
// IMPORTANT: Every branch below must call markSubmitExpenseEnd() after dispatching the expense action.
1031+
// This ensures the telemetry span started above is always closed, including inside async getCurrentPosition callbacks.
10301032
if (iouType !== CONST.IOU.TYPE.TRACK && isDistanceRequest && !isMovingTransactionFromTrackExpense && !isUnreported) {
10311033
createDistanceRequest(iouType === CONST.IOU.TYPE.SPLIT ? splitParticipants : selectedParticipants, trimmedComment);
10321034
markSubmitExpenseEnd();

0 commit comments

Comments
 (0)