You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Perf: check the Submit badge before the Mark as done check in LHN rows #108605
Every LHN row decides whether to show the "Mark as done" copy. OptionRowLHNContent calls shouldShowMarkAsDone before it checks actionBadge === CONST.REPORT.ACTION_BADGE.SUBMIT.
For users who chose to track expenses and use a Submit & Close workspace, shouldShowMarkAsDone passes its cheap checks for each of their own reports. It then calls getNextApproverAccountID, which scans all approval rules through getSubmitToEmail and reads personal details. This runs on every render of every such row. Only draft reports have the Submit badge, so the result is thrown away for most rows.
Activity