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 => {
|
||||
const locale = step.context.activity.locale;
|
||||
let phoneNumber = step.context.activity.text;
|
||||
let p = libphonenumber.PhoneNumberUtil.getInstance();
|
||||
try {
|
||||
let p = libphonenumber.PhoneNumberUtil.getInstance();
|
||||
phoneNumber = p.parse(phoneNumber);
|
||||
} catch (error) {
|
||||
await step.context.sendActivity(Messages[locale].validation_enter_valid_mobile);
|
||||
|
|
Loading…
Add table
Reference in a new issue