Account for duration being null

This commit is contained in:
RMidhunSuresh 2021-11-10 12:17:43 +05:30
parent db792ab5a9
commit 772f7a2757

View file

@ -85,8 +85,11 @@ export class LogItem {
}
durationWithoutType(type) {
if (this.duration) {
return this.duration - this.durationOfType(type);
}
return null;
}
durationOfType(type) {
if (this._values.t === type) {