Skip to content

Commit

Permalink
bt-879: * fix defult values for name and phone
Browse files Browse the repository at this point in the history
  • Loading branch information
vladjsp committed Sep 30, 2023
1 parent d837f91 commit 8cdb6f2
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 8cdb6f2

Please sign in to comment.