mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
Avoids unnecessary error, related to #56.
This commit is contained in:
parent
8ffb51e20a
commit
b08a2387a0
@ -1304,11 +1304,13 @@ $(function() {
|
|||||||
// more than max_bike_limit turn off spinner
|
// more than max_bike_limit turn off spinner
|
||||||
if ($("#transaction_type").val() === "Bicycles") {
|
if ($("#transaction_type").val() === "Bicycles") {
|
||||||
if (volunteer && obj.max_bike_earned) {
|
if (volunteer && obj.max_bike_earned) {
|
||||||
|
if (volunteer.hasOwnProperty(year)) {
|
||||||
if (volunteer[year].max_bike_earned >= obj.max_bike_earned) {
|
if (volunteer[year].max_bike_earned >= obj.max_bike_earned) {
|
||||||
$("#redeemable_hours").spinner("disable");
|
$("#redeemable_hours").spinner("disable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}); // volunteers post
|
}); // volunteers post
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user