diff --git a/src/modules/pages/components/IncorporationPage/IncorporationPage.tsx b/src/modules/pages/components/IncorporationPage/IncorporationPage.tsx index 39441c2d13..7e5d90e35e 100644 --- a/src/modules/pages/components/IncorporationPage/IncorporationPage.tsx +++ b/src/modules/pages/components/IncorporationPage/IncorporationPage.tsx @@ -40,7 +40,7 @@ const IncorporationPage = () => { const [isFormEditable, setFormEditable] = useState(false); const [formValues, setFormValues] = useState(formValuesMock); const [shouldValidate, setShouldValidate] = useState(false); - const [activeStageId, setActiveStageId] = useState(StagesEnum.Payment); + const [activeStageId, setActiveStageId] = useState(StagesEnum.Created); const sidebarRef = useRef(null); const user = useLoggedInUser(); @@ -62,12 +62,16 @@ const IncorporationPage = () => { return { id: protector.user?.id, walletAddress: protector.user?.profile?.walletAddress, - verified: VerificationStatus.Submitted, + verified: VerificationStatus.Verified, }; }), [formValues], ); + // Mock data + const isOwner = false; + const hasPermissions = isNominated || isOwner; + const isVerified = useMemo(() => { const verificationStatus = verificationStatuses?.find( (protector) => protector.walletAddress === user.walletAddress, @@ -109,13 +113,13 @@ const IncorporationPage = () => { return handleProceed; } case StagesEnum.Payment: { - return handlePay; + return hasPermissions ? handlePay : undefined; } default: { return () => {}; } } - }, [activeStageId, handlePay, handleProceed]); + }, [activeStageId, handlePay, handleProceed, hasPermissions]); const handleValidate = useCallback(() => { if (!shouldValidate) {