mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-31 22:51:39 +01:00
Account for duration being null
This commit is contained in:
parent
db792ab5a9
commit
772f7a2757
@ -85,7 +85,10 @@ export class LogItem {
|
||||
}
|
||||
|
||||
durationWithoutType(type) {
|
||||
return this.duration - this.durationOfType(type);
|
||||
if (this.duration) {
|
||||
return this.duration - this.durationOfType(type);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
durationOfType(type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user