Log invalid number inputs
// FREEBIE
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
confirmNumber: function(number) {
|
confirmNumber: function(number) {
|
||||||
var parsed = libphonenumber.parse(number);
|
var parsed = libphonenumber.parse(number);
|
||||||
if (!libphonenumber.isValidNumber(parsed)) {
|
if (!libphonenumber.isValidNumber(parsed)) {
|
||||||
throw new Error('Invalid number');
|
throw new Error('Invalid number ' + number);
|
||||||
}
|
}
|
||||||
this.$('#step4 .number').text(libphonenumber.format(
|
this.$('#step4 .number').text(libphonenumber.format(
|
||||||
parsed,
|
parsed,
|
||||||
|
Reference in New Issue
Block a user