fix: removed country code validation
This commit is contained in:
parent
080c07b22b
commit
831e6ee499
@ -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} ...`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user