diff --git a/src/channel/whatsappUtils.js b/src/channel/whatsappUtils.js index b450602..4ed653e 100644 --- a/src/channel/whatsappUtils.js +++ b/src/channel/whatsappUtils.js @@ -693,7 +693,8 @@ export const phoneNumberToWAID = (input) => { const isArgentina = countryCode === '54'; const isMexico = countryCode === '52'; - if (!isArgentina && !isMexico) { + // if (!isArgentina && !isMexico) { + if (!isArgentina) { return cleanedInput; // Return the cleaned input as is } @@ -711,9 +712,9 @@ export const phoneNumberToWAID = (input) => { formattedNumber = `54 9 ${formattedNumber.slice(2)}`; } else if (isMexico) { // Remove leading '0' after country code - formattedNumber = formattedNumber.replace(/^52 ?0/, '52'); + // formattedNumber = formattedNumber.replace(/^52 ?0/, '52'); // Insert "1" after the country code - formattedNumber = `52 1 ${formattedNumber.slice(2)}`; + // formattedNumber = `52 1 ${formattedNumber.slice(2)}`; } // Remove any non-digit characters