Skip to content

Commit 649eff9

Browse files
authored
Merge pull request Expensify#63360 from samranahm/63344/remove-onboarding-help-from-archived
Prevent displaying Onboarding help button on archived report
2 parents d03ff24 + 5d41c44 commit 649eff9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/home/HeaderView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function HeaderView({report, parentReportAction, onNavigationMenuButtonClicked,
230230
const [onboardingPurposeSelected] = useOnyx(ONYXKEYS.ONBOARDING_PURPOSE_SELECTED, {canBeMissing: true});
231231
const isChatUsedForOnboarding = isChatUsedForOnboardingReportUtils(report, onboardingPurposeSelected);
232232
const shouldShowRegisterForWebinar = introSelected?.companySize === CONST.ONBOARDING_COMPANY_SIZE.MICRO && (isChatUsedForOnboarding || isAdminRoom(report));
233-
const shouldShowOnBoardingHelpDropdownButton = (shouldShowTalkToSales && !isNativePlatform) || shouldShowRegisterForWebinar;
233+
const shouldShowOnBoardingHelpDropdownButton = ((shouldShowTalkToSales && !isNativePlatform) || shouldShowRegisterForWebinar) && !isArchivedReport(reportNameValuePairs);
234234
const shouldShowEarlyDiscountBanner = shouldShowDiscount && isChatUsedForOnboarding;
235235
const shouldShowGuideBookingButtonInEarlyDiscountBanner = shouldShowGuideBooking && shouldShowEarlyDiscountBanner && !isDismissedDiscountBanner;
236236

0 commit comments

Comments
 (0)