diff --git a/src/filters/parsePhone.js b/src/filters/parsePhone.js index 4fcf1386d..27474321f 100644 --- a/src/filters/parsePhone.js +++ b/src/filters/parsePhone.js @@ -1,6 +1,7 @@ import axios from 'axios'; export default async function parsePhone(phone, country) { + if (!phone) return; if (phone.startsWith('+')) return `${phone.slice(1)}`; if (phone.startsWith('00')) return `${phone.slice(2)}`; try {