summit-registration-lite 4.0.22 → 4.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/.env +0 -3
package/dist/index.js
CHANGED
|
@@ -2146,9 +2146,11 @@ const PersonalInfoComponent = ({
|
|
|
2146
2146
|
}) => {
|
|
2147
2147
|
var _errors$email, _errors$email2;
|
|
2148
2148
|
|
|
2149
|
+
const initialFirstName = userProfile.given_name || (invitation ? invitation.first_name : '');
|
|
2150
|
+
const initialLastName = userProfile.family_name || (invitation ? invitation.last_name : '');
|
|
2149
2151
|
const [personalInfo, setPersonalInfo] = (0,external_react_.useState)({
|
|
2150
|
-
firstName:
|
|
2151
|
-
lastName:
|
|
2152
|
+
firstName: initialFirstName,
|
|
2153
|
+
lastName: initialLastName,
|
|
2152
2154
|
email: userProfile.email || '',
|
|
2153
2155
|
company: {
|
|
2154
2156
|
id: null,
|
|
@@ -2249,7 +2251,9 @@ const PersonalInfoComponent = ({
|
|
|
2249
2251
|
}, /*#__PURE__*/external_react_default().createElement("input", personal_information_extends({
|
|
2250
2252
|
type: "text",
|
|
2251
2253
|
placeholder: "First name *",
|
|
2252
|
-
defaultValue: personalInfo.firstName || ''
|
|
2254
|
+
defaultValue: personalInfo.firstName || '',
|
|
2255
|
+
readOnly: initialLastName !== '',
|
|
2256
|
+
className: initialLastName !== '' ? personal_information_index_module.readOnly : ''
|
|
2253
2257
|
}, register("firstName", {
|
|
2254
2258
|
required: true,
|
|
2255
2259
|
maxLength: 80
|
|
@@ -2265,7 +2269,9 @@ const PersonalInfoComponent = ({
|
|
|
2265
2269
|
}, /*#__PURE__*/external_react_default().createElement("input", personal_information_extends({
|
|
2266
2270
|
type: "text",
|
|
2267
2271
|
placeholder: "Last name *",
|
|
2268
|
-
defaultValue: personalInfo.lastName || ''
|
|
2272
|
+
defaultValue: personalInfo.lastName || '',
|
|
2273
|
+
readOnly: initialLastName !== '',
|
|
2274
|
+
className: initialLastName !== '' ? personal_information_index_module.readOnly : ''
|
|
2269
2275
|
}, register("lastName", {
|
|
2270
2276
|
required: true,
|
|
2271
2277
|
maxLength: 100
|