mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +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.
|
// in (v)alues, (l)abel and (t)ype are also reserved.
|
||||||
const item: ISerializedItem = {
|
const item: ISerializedItem = {
|
||||||
// (s)tart
|
// (s)tart
|
||||||
s: parentStartTime? this.start - parentStartTime : this.start,
|
s: typeof parentStartTime === "number" ? this.start - parentStartTime : this.start,
|
||||||
// (d)uration
|
// (d)uration
|
||||||
d: this.duration,
|
d: this.duration,
|
||||||
// (v)alues
|
// (v)alues
|
||||||
|
Loading…
Reference in New Issue
Block a user