File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,7 +309,6 @@ function getIOUReportActionWithBadge(
309309
310310 let actionBadge : ValueOf < typeof CONST . REPORT . ACTION_BADGE > | undefined ;
311311 let earliestAction : ReportAction | undefined ;
312- let earliestBadge : ValueOf < typeof CONST . REPORT . ACTION_BADGE > | undefined ;
313312
314313 for ( const action of Object . values ( chatReportActions ) ) {
315314 if ( action ?. actionName !== CONST . REPORT . ACTIONS . TYPE . REPORT_PREVIEW || isDeletedAction ( action ) ) {
@@ -322,14 +321,10 @@ function getIOUReportActionWithBadge(
322321 }
323322 if ( ! earliestAction ?. created || ( action . created && action . created < earliestAction . created ) ) {
324323 earliestAction = action ;
325- earliestBadge = badge ;
324+ actionBadge = badge ;
326325 }
327326 }
328327
329- if ( earliestAction ) {
330- actionBadge = earliestBadge ;
331- }
332-
333328 return { reportAction : earliestAction , actionBadge} ;
334329}
335330
You can’t perform that action at this time.
0 commit comments