fix: removed country code validation

This commit is contained in:
Shariq Ansari 2024-03-18 18:02:42 +05:30
parent 080c07b22b
commit 831e6ee499

View File

@ -379,13 +379,13 @@ function handleDisconnectedIncomingCall() {
async function makeOutgoingCall(number) {
// check if number has a country code
if (number?.replace(/[^0-9+]/g, '').length == 10) {
$dialog({
title: 'Invalid Mobile Number',
message: `${number} is not a valid mobile number. Either add a country code or check the number again.`,
})
return
}
// if (number?.replace(/[^0-9+]/g, '').length == 10) {
// $dialog({
// title: 'Invalid Mobile Number',
// message: `${number} is not a valid mobile number. Either add a country code or check the number again.`,
// })
// return
// }
if (device) {
log.value = `Attempting to call ${number} ...`