Fixed undefined error for hourly tracks

This commit is contained in:
Josef Citrine 2016-05-05 23:54:33 +01:00
parent 049c01a0a1
commit 2fcc8bc9ec

View file

@ -26,7 +26,7 @@ module.exports = angular.module('ponyfm').controller 'track-stats', [
statsLoaded = (stats) ->
for key, value of stats.playStats
labelArray.push value.hour || value.days
labelArray.push value.hours || value.days
dailyArray.push value.plays
i = 0