We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f87975 commit d8a6968Copy full SHA for d8a6968
src/helpers/utils.js
@@ -135,9 +135,13 @@ export const caseInsensitiveSearch = (key, searchString) => {
135
* if phone is not head with '+', add '+'
136
*
137
* @param {String} phone
138
- * @returns {String}
+ * @returns {String}
139
*/
140
export const formatPhone = (phone) => {
141
+ if (!phone) {
142
+ return phone
143
+ }
144
+
145
if(phone[0] === '+') {
146
return phone
147
}else{
0 commit comments