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,7 +85,10 @@ export class LogItem {
} }
durationWithoutType(type) { durationWithoutType(type) {
return this.duration - this.durationOfType(type); if (this.duration) {
return this.duration - this.durationOfType(type);
}
return null;
} }
durationOfType(type) { durationOfType(type) {