Skip to content

Commit

Permalink
Do not reset number on country change (twentyhq#9329)
Browse files Browse the repository at this point in the history
As title
  • Loading branch information
thomtrp authored Jan 2, 2025
1 parent 5b6c52c commit 0674388
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const FormPhoneFieldInput = ({
onPersist({
primaryPhoneCountryCode: newCountry,
primaryPhoneCallingCode: newCallingCode,
primaryPhoneNumber: '',
primaryPhoneNumber: defaultValue?.primaryPhoneNumber || '',
});
};

Expand Down

0 comments on commit 0674388

Please sign in to comment.