From 40a2a6ababf9abda5c5ab2963da88cfe8516eea8 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Thu, 20 Jul 2017 22:47:37 +0000 Subject: [PATCH] Tests if volunteer_hours exists. --- js/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/transaction.js b/js/transaction.js index 1e65e18..3a805a1 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -711,7 +711,7 @@ $(function() { if (obj) { var volunteer_hours = obj.volunteer_hours; - if (volunteer_hours.length) { + if (volunteer_hours && volunteer_hours.length) { $("#volunteer_hours").prop("title",title).html("Volunteer Hours"); } else { $("#volunteer_hours").prop("title","").empty();