Skip to content

Commit

Permalink
fix(PhoneNumberEditor): Fix UI crash when typing letters in or emptyi…
Browse files Browse the repository at this point in the history
…ng phone number field.
  • Loading branch information
binh-dam-ibigroup committed Feb 9, 2023
1 parent 8868da6 commit 939c48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/user/phone-number-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class PhoneNumberEditor extends Component<Props, State> {
})
}

_handleNewPhoneNumberChange = (newPhoneNumber: string) => {
_handleNewPhoneNumberChange = (newPhoneNumber = '') => {
this.setState({
newPhoneNumber
})
Expand Down

0 comments on commit 939c48f

Please sign in to comment.