Skip to content

Commit

Permalink
🐛 personaldata message only for holderchange
Browse files Browse the repository at this point in the history
personaldata is a generic screen, but there is a message that has to appear only for holderchange form
  • Loading branch information
marta197 committed Dec 12, 2024
1 parent 9def192 commit 9d695f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/containers/HolderChange.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ function HolderChange(props) {
url={url}
{...props}
isMemberMandatoryForHolderchange={isMemberMandatoryForHolderchange}
form='holderchange'
/>
)}
{activeStep === 6 && <VoluntaryCent {...props} />}
Expand Down
5 changes: 3 additions & 2 deletions src/containers/HolderChange/PersonalData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function PersonalData(props) {
skipPrivacyPolicy = false,
title = false,
entity = 'holder',
isMemberMandatoryForHolderchange = false
isMemberMandatoryForHolderchange = false,
form = undefined
} = props
const [openLegal, setOpenLegal] = useState(false)
const trialPeriod =
Expand Down Expand Up @@ -128,7 +129,7 @@ function PersonalData(props) {
<StepHeader
title={
entity === 'holder'
? !isMemberMandatoryForHolderchange && trialPeriod
? form === 'holderchange' && !isMemberMandatoryForHolderchange && trialPeriod
? t('HOLDER_PERSONAL_DATA_TRIAL_PERIOD')
: t('HOLDER_PERSONAL_DATA')
: t('MEMBER_PERSONAL_DATA')
Expand Down

0 comments on commit 9d695f9

Please sign in to comment.