Skip to content

Commit 8ca8932

Browse files
committed
chore: update according to comments
1 parent d832869 commit 8ca8932

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/shared/src/utils/phone.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ function validateE164Number(value: string): asserts value is E164Number {
1010
}
1111

1212
const parseE164Number = (value: string): E164Number | '' => {
13-
// If typeof `value` is string and `!value` is true, then `value` is an empty string.
1413
if (!value) {
15-
return '';
14+
return value;
1615
}
1716

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

0 commit comments

Comments
 (0)