File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -916,7 +916,11 @@ function getSuggestedSearchesVisibility(
916916 shouldShowTopCategoriesSuggestion ||= isEligibleForTopCategoriesSuggestion ;
917917 shouldShowTopMerchantsSuggestion ||= isEligibleForTopMerchantsSuggestion ;
918918 hasGroupPoliciesWithExpenseChat ||=
919- isPaidPolicy && ! ! policy . isPolicyExpenseChatEnabled && ! policy . isJoinRequestPending && policy . pendingAction !== CONST . RED_BRICK_ROAD_PENDING_ACTION . DELETE && ! ! policy . role ;
919+ isPaidPolicy &&
920+ ! ! policy . isPolicyExpenseChatEnabled &&
921+ ! policy . isJoinRequestPending &&
922+ ( policy . pendingAction !== CONST . RED_BRICK_ROAD_PENDING_ACTION . DELETE || Object . keys ( policy . errors ?? { } ) . length > 0 ) &&
923+ ! ! policy . role ;
920924 shouldShowSpendOverTimeSuggestion ||= isEligibleForSpendOverTimeSuggestion ;
921925
922926 // We don't need to check the rest of the policies if we already determined that all suggestions should be displayed
You can’t perform that action at this time.
0 commit comments