Closed khaled9544 closed 5 years ago
Hello,
isValid() is not working inside the try catch braces.
With
async push() { try { let phoneNumber = `${this.dial_code}${this.phoneNumber}`; let parsedNumber = parsePhoneNumber(phoneNumber, this.code); console.log(parsedNumber.isValid()); //----> Always false } catch(e) { console.log(JSON.stringify(e,null,2)); } };
Without
async push() { let phoneNumber = `${this.dial_code}${this.phoneNumber}`; let parsedNumber = parsePhoneNumber(phoneNumber, this.code); console.log(parsedNumber.isValid()); //----> Is working well };
Any idea why this is happening?
Thanks
You can create a sample project illustrating the issue (or a "fiddle"). Closing until then because this doesn't seem like a possible bug.
Hello,
isValid() is not working inside the try catch braces.
With
Without
Any idea why this is happening?
Thanks