diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-05-31 08:18:13 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-05-31 08:18:13 -0500 |
| commit | cd145766dbc4ab07f6ce5073ba2986c3e72436bc (patch) | |
| tree | 154164ba2f6459f22ec14ab0dada7adda4c5d2a9 /src/models/EventInfo.ts | |
| parent | e344a5e375fc3ffaf8ff26251f5370826a6e34e7 (diff) | |
Spam formatting
Diffstat (limited to 'src/models/EventInfo.ts')
| -rw-r--r-- | src/models/EventInfo.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/models/EventInfo.ts b/src/models/EventInfo.ts index b0ac25b..a6819db 100644 --- a/src/models/EventInfo.ts +++ b/src/models/EventInfo.ts @@ -22,7 +22,7 @@ export default class EventInfo { this.end = end; } - static fromJSON({days, start, end}: EventInfoSerializeInfo) { + static fromJSON({ days, start, end }: EventInfoSerializeInfo) { return new EventInfo(days, start, end); } @@ -49,9 +49,9 @@ export default class EventInfo { } get info() { - if(this.days === "") { + if (this.days === "") { return `WEB`; - }else if(this.start === -1 || this.end === -1) { + } else if (this.start === -1 || this.end === -1) { return `${this.days}`; } else { return `${this.days} ${EventInfo.timeToStr(this.start)}-${EventInfo.timeToStr(this.end)}`; |
