diff --git a/src/stores/AuthStore.js b/src/stores/AuthStore.js index 06650d6..18c44d0 100644 --- a/src/stores/AuthStore.js +++ b/src/stores/AuthStore.js @@ -188,7 +188,7 @@ const useAuthStore = create(devtools((set, get) => ({ const { loginUser, saveUserSession } = get() const postWABAUrl = `${API_HOST}/v2/set_whatsapp_info` - const params = {opi_sn: userId, whatsapp_waba: whatsAppBusiness, whatsapp_wa: whatsAppNo}; + const params = {opi_sn: userId, whatsapp_waba: whatsAppBusiness, whatsapp_wa: whatsAppNo.replace(/\D/g, '')}; return fetchJSON(postWABAUrl, params) .then(json => {