mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
explicitly check for type, rather than truthy
This commit is contained in:
parent
74fb15e426
commit
afc538e875
@ -144,7 +144,7 @@ export class LogItem implements ILogItem {
|
||||
// in (v)alues, (l)abel and (t)ype are also reserved.
|
||||
const item: ISerializedItem = {
|
||||
// (s)tart
|
||||
s: parentStartTime? this.start - parentStartTime : this.start,
|
||||
s: typeof parentStartTime === "number" ? this.start - parentStartTime : this.start,
|
||||
// (d)uration
|
||||
d: this.duration,
|
||||
// (v)alues
|
||||
|
Loading…
Reference in New Issue
Block a user