aboutsummaryrefslogtreecommitdiff
path: root/src/models/EventInfo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/EventInfo.ts')
-rw-r--r--src/models/EventInfo.ts6
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)}`;