Skip to content

Commit

Permalink
chore: update according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyYe committed May 24, 2024
1 parent d832869 commit 8ca8932
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/shared/src/utils/phone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ function validateE164Number(value: string): asserts value is E164Number {
}

const parseE164Number = (value: string): E164Number | '' => {
// If typeof `value` is string and `!value` is true, then `value` is an empty string.
if (!value) {
return '';
return value;
}

const result = value.startsWith('+') ? value : `+${value}`;
Expand Down

0 comments on commit 8ca8932

Please sign in to comment.