fix(all): Create bot working again.

This commit is contained in:
Rodrigo Rodriguez 2023-07-14 18:52:34 -03:00
parent f4ab70396a
commit 0f1acf6646

View file

@ -102,8 +102,8 @@ export class ProfileDialog extends IGBDialog {
async step => { async step => {
const locale = step.context.activity.locale; const locale = step.context.activity.locale;
let phoneNumber = step.context.activity.text; let phoneNumber = step.context.activity.text;
let p = libphonenumber.PhoneNumberUtil.getInstance();
try { try {
let p = libphonenumber.PhoneNumberUtil.getInstance();
phoneNumber = p.parse(phoneNumber); phoneNumber = p.parse(phoneNumber);
} catch (error) { } catch (error) {
await step.context.sendActivity(Messages[locale].validation_enter_valid_mobile); await step.context.sendActivity(Messages[locale].validation_enter_valid_mobile);