diff --git a/src/pages/organizers/[organizerId]/preview/index.page.tsx b/src/pages/organizers/[organizerId]/preview/index.page.tsx index 9844e106c..a108872bf 100644 --- a/src/pages/organizers/[organizerId]/preview/index.page.tsx +++ b/src/pages/organizers/[organizerId]/preview/index.page.tsx @@ -73,11 +73,6 @@ const OrganizersPreview = () => { organizer?.mainLanguage as SupportedLanguage, ); - useHandleWindowMessage({ - [WindowMessageTypes.OWNERSHIP_REQUEST_DIALOG_OPENED]: () => - setIsQuestionModalVisible(true), - }); - useHandleWindowMessage({ [WindowMessageTypes.PAGE_HEIGHT]: (event) => setIframeHeight(event?.height), }); @@ -146,56 +141,57 @@ const OrganizersPreview = () => { /> - - {isOwnershipRequested && ( - - - - )} - {isSuccessAlertVisible && ( - { - setIsSuccessAlertVisible(false); + {isOwnershipRequested && ( + + - - - )} - {isErrorAlertVisible && ( - { - setIsErrorAlertVisible(false); + /> + + )} + {isSuccessAlertVisible && ( + { + setIsSuccessAlertVisible(false); + }} + > + - - - )} - + /> + + )} + {isErrorAlertVisible && ( + { + setIsErrorAlertVisible(false); + }} + > + + + )} + - {!canEdit && isOwnershipEnabled && ( + {!canEdit && isOwnershipEnabled && !isOwnershipRequested && ( )} - + {canEdit && isOwnershipEnabled && !isOwnershipRequested && ( + + )}