@@ -357,8 +357,8 @@ function getSuggestedSearchesVisibility(
357357 let shouldShowApproveSuggestion = false ;
358358 let shouldShowExportSuggestion = false ;
359359 let shouldShowStatementsSuggestion = false ;
360- let showShowUnapprovedCashSuggestion = false ;
361- let showShowUnapprovedCardSuggestion = false ;
360+ let shouldShowUnapprovedCashSuggestion = false ;
361+ let shouldShowUnapprovedCardSuggestion = false ;
362362 let shouldShowReconciliationSuggestion = false ;
363363
364364 Object . values ( policies ?? { } ) . some ( ( policy ) => {
@@ -391,8 +391,8 @@ function getSuggestedSearchesVisibility(
391391 shouldShowApproveSuggestion ||= isEligibleForApproveSuggestion ;
392392 shouldShowExportSuggestion ||= isEligibleForExportSuggestion ;
393393 shouldShowStatementsSuggestion ||= isEligibleForStatementsSuggestion ;
394- showShowUnapprovedCashSuggestion ||= isEligibleForUnapprovedCashSuggestion ;
395- showShowUnapprovedCardSuggestion ||= isEligibleForUnapprovedCardSuggestion ;
394+ shouldShowUnapprovedCashSuggestion ||= isEligibleForUnapprovedCashSuggestion ;
395+ shouldShowUnapprovedCardSuggestion ||= isEligibleForUnapprovedCardSuggestion ;
396396 shouldShowReconciliationSuggestion ||= isEligibleForReconciliationSuggestion ;
397397
398398 // We don't need to check the rest of the policies if we already determined that all suggestions should be displayed
@@ -402,8 +402,8 @@ function getSuggestedSearchesVisibility(
402402 shouldShowApproveSuggestion &&
403403 shouldShowExportSuggestion &&
404404 shouldShowStatementsSuggestion &&
405- showShowUnapprovedCashSuggestion &&
406- showShowUnapprovedCardSuggestion &&
405+ shouldShowUnapprovedCashSuggestion &&
406+ shouldShowUnapprovedCardSuggestion &&
407407 shouldShowReconciliationSuggestion
408408 ) ;
409409 } ) ;
@@ -417,8 +417,8 @@ function getSuggestedSearchesVisibility(
417417 [ CONST . SEARCH . SEARCH_KEYS . APPROVE ] : shouldShowApproveSuggestion ,
418418 [ CONST . SEARCH . SEARCH_KEYS . EXPORT ] : shouldShowExportSuggestion ,
419419 [ CONST . SEARCH . SEARCH_KEYS . STATEMENTS ] : shouldShowStatementsSuggestion ,
420- [ CONST . SEARCH . SEARCH_KEYS . UNAPPROVED_CASH ] : showShowUnapprovedCashSuggestion ,
421- [ CONST . SEARCH . SEARCH_KEYS . UNAPPROVED_CARD ] : showShowUnapprovedCardSuggestion ,
420+ [ CONST . SEARCH . SEARCH_KEYS . UNAPPROVED_CASH ] : shouldShowUnapprovedCashSuggestion ,
421+ [ CONST . SEARCH . SEARCH_KEYS . UNAPPROVED_CARD ] : shouldShowUnapprovedCardSuggestion ,
422422 } ;
423423}
424424
0 commit comments