fix(all): Create bot working again.
This commit is contained in:
parent
f4ab70396a
commit
0f1acf6646
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue