Skip to content

Commit 83b17c0

Browse files
MelvinBothuult
andcommitted
Remove explanatory comment per review feedback
Co-authored-by: huult <huult@users.noreply.github.com>
1 parent 9b1f3cb commit 83b17c0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎src/components/Search/SearchBulkActionsButton.tsx‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ function SearchBulkActionsButton({queryJSON}: SearchBulkActionsButtonProps) {
106106
} = useSearchBulkActions({queryJSON});
107107
const currentSelectedReportID = selectedTransactionReportIDs?.at(0) ?? selectedReportIDs?.at(0);
108108
const [selectedIOUReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${currentSelectedReportID}`);
109-
// Resolve the policy from the report that is actually being paid. selectedPolicyIDs is ordered and filtered
110-
// independently of currentSelectedReportID, so on a selection spanning workspaces its first entry can belong to a
111-
// different workspace than this report, which would send the KYC wall and the add-bank-account flow to the wrong
112-
// workspace. Fall back to the first selected policy only when the report itself yields nothing.
113109
const currentSelectedPolicyID =
114110
selectedIOUReport?.policyID ??
115111
searchData?.[`${ONYXKEYS.COLLECTION.REPORT}${currentSelectedReportID}`]?.policyID ??

0 commit comments

Comments
 (0)