mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Fix error in reduce
This commit is contained in:
parent
4704a70cb7
commit
58105824d9
@ -141,9 +141,7 @@ export class LogItem implements ILogItem {
|
|||||||
} else if (this._children) {
|
} else if (this._children) {
|
||||||
return this._children.reduce((sum, c) => {
|
return this._children.reduce((sum, c) => {
|
||||||
const duration = c.durationOfType(type);
|
const duration = c.durationOfType(type);
|
||||||
if (duration) {
|
return sum + (duration ?? 0);
|
||||||
return sum + duration;
|
|
||||||
}
|
|
||||||
}, 0);
|
}, 0);
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user