fix a bug where the statistics dialog wouldn't display before the first new sign-up of the current year
This commit is contained in:
parent
8b92595d1d
commit
ccbb954b3e
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ pandora.ui.statisticsDialog = function() {
|
||||||
Ox.loop(firstKey[0], lastKey[0] + 1, function(year) {
|
Ox.loop(firstKey[0], lastKey[0] + 1, function(year) {
|
||||||
['firstseen', 'lastseen'].forEach(function(key) {
|
['firstseen', 'lastseen'].forEach(function(key) {
|
||||||
var key = [year, key].join('-');
|
var key = [year, key].join('-');
|
||||||
data[mode].year[key] = data[mode].year[key] || 0;
|
data[mode].year[key] = data[mode].year[key] || {};
|
||||||
});
|
});
|
||||||
Ox.loop(
|
Ox.loop(
|
||||||
year == firstKey[0] ? firstKey[1] : 1,
|
year == firstKey[0] ? firstKey[1] : 1,
|
||||||
|
|
Loading…
Reference in a new issue