This commit is contained in:
Joachim 2021-11-24 19:02:07 +01:00
parent db5e7a886a
commit 8712b2fdab

View file

@ -127,6 +127,7 @@ let BookWyrm = new class {
// This concerns 'review', 'quotation', 'comment' // This concerns 'review', 'quotation', 'comment'
count = allowedStatusTypes.reduce(function(prev, currentKey) { count = allowedStatusTypes.reduce(function(prev, currentKey) {
const currentValue = count_by_type[currentKey] | 0; const currentValue = count_by_type[currentKey] | 0;
return prev + currentValue; return prev + currentValue;
}, 0); }, 0);
@ -143,6 +144,7 @@ let BookWyrm = new class {
function(prev, currentKey) { function(prev, currentKey) {
const currentValue = const currentValue =
count_by_everything_else[currentKey] | 0 count_by_everything_else[currentKey] | 0
return prev + currentValue; return prev + currentValue;
}, },
count count