diff --git a/public/scripts/functions.js b/public/scripts/functions.js index d052270..6c2d86c 100644 --- a/public/scripts/functions.js +++ b/public/scripts/functions.js @@ -38,7 +38,9 @@ function populateHoneycomb( honeyCells , index){ var honeyComb = document.getElementById("honeyComb"); var renderedHoneyComb = document.getElementById("renderedHoneyComb"); renderedHoneyComb.innerHTML=""; - + if( typeof honeyCells.score == "undefined"){ + honeyCells.score = 0; + } honeyComb.innerHTML = "
Index: "+index+"
"; honeyComb.innerHTML += "
Score:"+honeyCells.score+"
";