Skip to content

Commit

Permalink
Merge pull request #881 from BinaryStudioAcademy/fix/bt-879-fix-pre-f…
Browse files Browse the repository at this point in the history
…illing-lms-data-for-contacts-step

bt-879: Fix pre-filling lms data for contacts step
  • Loading branch information
nikita-remeslov authored Sep 30, 2023
2 parents 8aa6090 + 8cdb6f2 commit 46c9b6a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const ContactsCVStep: React.FC = () => {
clearErrors,
} = useAppForm<ContactsCVStepDto>({
defaultValues: useMemo(() => {
const fullNameValue = fullName ?? lmsData?.talent.fullName;
const phoneValue = phone ?? lmsData?.talent.phoneNumber;
const fullNameValue = fullName || lmsData?.talent.fullName;
const phoneValue = phone || lmsData?.talent.phoneNumber;

return {
fullName: fullNameValue,
Expand Down

0 comments on commit 46c9b6a

Please sign in to comment.