Skip to content

Commit 65bdd7a

Browse files
author
Maksym Mykhailenko
committed
fix: progressive registration for customers
Show disabled Business Email with prefiled email instead of hiding it for Customer users.
1 parent e7505e6 commit 65bdd7a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/projects/create/components/FillProjectDetails.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ const mapStateToProps = ({ settings, loadUser }) => {
322322
!profileSettings.workingHourStart ||
323323
!profileSettings.workingHourEnd
324324
} else {
325+
if (!profileSettings.businessEmail) {
326+
profileSettings.businessEmail = loadUser.user.email
327+
}
325328
isMissingUserInfo =
326329
!profileSettings.firstName ||
327330
!profileSettings.lastName ||

src/projects/create/components/UpdateUserInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class UpdateUserInfo extends Component {
6060
isManager={isManager}
6161
showTitle={!isTopcoderUser}
6262
showAvatar={false}
63-
showBusinessEmail={false}
63+
showBusinessEmail={!isTopcoderUser}
6464
showBusinessPhone={!isTopcoderUser}
6565
showCompanyName={!isTopcoderUser}
6666
isRequiredTimeZone={isTopcoderUser}

src/routes/settings/routes/profile/components/ProfileSettingsForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class ProfileSettingsForm extends Component {
236236
{this.getField('Last Name', 'lastName', true)}
237237
{showTitle && this.getField('Title', 'title', true)}
238238
{showBusinessEmail &&
239-
this.getField('Business Email', 'businessEmail', isRequiredBusinessEmail)}
239+
this.getField('Business Email', 'businessEmail', isRequiredBusinessEmail, true)}
240240
{showBusinessPhone && (
241241
<div className="field">
242242
<div className="label">

0 commit comments

Comments
 (0)