Skip to content

Commit 9dbe775

Browse files
committed
fix fail test
1 parent 651e5f6 commit 9dbe775

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/libs/SidebarUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function shouldDisplayReportInLHN(
205205
isInFocusMode: boolean,
206206
betas: OnyxEntry<Beta[]>,
207207
transactionViolations: OnyxCollection<TransactionViolation[]>,
208-
reportNameValuePairs?: OnyxCollection<ReportNameValuePairs>,
208+
reportNameValuePairs?: OnyxEntry<ReportNameValuePairs>,
209209
reportAttributes?: ReportAttributesDerivedValue['reports'],
210210
) {
211211
if (!report) {
@@ -286,7 +286,7 @@ function getReportsToDisplayInLHN(
286286
isInFocusMode,
287287
betas,
288288
transactionViolations,
289-
reportNameValuePairs,
289+
reportNameValuePairs?.[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report.reportID}`],
290290
reportAttributes,
291291
);
292292

@@ -324,7 +324,7 @@ function updateReportsToDisplayInLHN(
324324
isInFocusMode,
325325
betas,
326326
transactionViolations,
327-
reportNameValuePairs,
327+
reportNameValuePairs?.[`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report.reportID}`],
328328
reportAttributes,
329329
);
330330

0 commit comments

Comments
 (0)