Skip to content

Commit 090e39b

Browse files
authored
Merge pull request Expensify#66649 from dukenv0307/fix/65933
Register for webinar button is shown on the thread of admin room
2 parents 842afd6 + 1049d79 commit 090e39b

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
@@ -226,7 +226,7 @@ function HeaderView({report, parentReportAction, onNavigationMenuButtonClicked,
226226
const shouldDisplaySearchRouter = !isReportInRHP || isSmallScreenWidth;
227227
const [onboardingPurposeSelected] = useOnyx(ONYXKEYS.ONBOARDING_PURPOSE_SELECTED, {canBeMissing: true});
228228
const isChatUsedForOnboarding = isChatUsedForOnboardingReportUtils(report, onboardingPurposeSelected);
229-
const shouldShowRegisterForWebinar = introSelected?.companySize === CONST.ONBOARDING_COMPANY_SIZE.MICRO && (isChatUsedForOnboarding || isAdminRoom(report));
229+
const shouldShowRegisterForWebinar = introSelected?.companySize === CONST.ONBOARDING_COMPANY_SIZE.MICRO && (isChatUsedForOnboarding || (isAdminRoom(report) && !isChatThread));
230230
const shouldShowOnBoardingHelpDropdownButton = (shouldShowRegisterForWebinar || shouldShowGuideBooking) && !isArchived;
231231
const shouldShowEarlyDiscountBanner = shouldShowDiscount && isChatUsedForOnboarding;
232232
const latestScheduledCall = reportNameValuePairs?.calendlyCalls?.at(-1);

0 commit comments

Comments
 (0)