Fix not detecting empty package count
This commit is contained in:
parent
10a8b3f23f
commit
2211f74671
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
|
|
||||||
function requestPickup() {
|
function requestPickup() {
|
||||||
if (isNaN($("#pickupRequestForm #packagecount").val())) {
|
if (isNaN($("#pickupRequestForm #packagecount").val()) || $("#pickupRequestForm #packagecount").val() == "") {
|
||||||
app.dialog.alert("Tell us how many packages you're sending so we'll know if we miss any.", "Whoops!");
|
app.dialog.alert("Tell us how many packages you're sending so we'll know if we miss any.", "Whoops!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user