Skip to content

Commit

Permalink
Merge pull request #109 from Som-Energia/FIX_personaldata_message_for…
Browse files Browse the repository at this point in the history
…_holderchange

🐛 personaldata message only for holderchange
  • Loading branch information
marta197 authored Dec 12, 2024
2 parents 9def192 + d9dcf22 commit d0837a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Change Log

## Unreleased

- Fix: show a PersonalData message only for Holderchange

## 2.4.2 2024-12-04

- Gurb: validation pages for non-members
- Added feature flag: isGurbEnabled
- Fix tpv asynchronous submit

## 2.4.1 2024-11-11

- Added message for autonomous (Modify Contract form)
- Added feature flag: noticeAutonomous

Expand Down
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 d0837a0

Please sign in to comment.