Skip to content

Commit

Permalink
feat: update/profile-user-input-data
Browse files Browse the repository at this point in the history
  • Loading branch information
maik791277 authored and jsapro committed Jan 15, 2024
1 parent 6842398 commit 02a5dbc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/pages/profile/profile-user/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ export default function ProfileUser() {
first_name: `${values.profile_firstName}`,
last_name: `${values.profile_lastName}`,
// city: `${values.profile_city}`,
birth_date:
values.profile_birthDate === '' ? null : `${values.profile_birthDate}`,
...(values.profile_birthDate !== null && {
birth_date: `${values.profile_birthDate}`,
}),
phone_number: `${values.profile_phoneNumber}`,
})
.then((data) => {
Expand Down Expand Up @@ -97,7 +98,6 @@ export default function ProfileUser() {
type="text"
value={values.profile_firstName}
withErrorSpan={true}
required
/>
<Input
inputNameSpan="Фамилия"
Expand All @@ -109,7 +109,6 @@ export default function ProfileUser() {
type="text"
value={values.profile_lastName}
withErrorSpan={true}
required
/>
<Input
inputNameSpan={`Email* (Почтовый адрес)`}
Expand All @@ -133,7 +132,6 @@ export default function ProfileUser() {
type="phone"
value={values.profile_phoneNumber}
withErrorSpan={true}
required
/>
<Input
inputNameSpan="Username"
Expand All @@ -157,7 +155,6 @@ export default function ProfileUser() {
type="text"
value={values.profile_birthDate || ''}
withErrorSpan={true}
required
/>
{/* <Input
inputNameSpan="Город"
Expand Down

0 comments on commit 02a5dbc

Please sign in to comment.