From 97d8429f22928b5c93b1b25378c3821ac1db0b42 Mon Sep 17 00:00:00 2001 From: Franco Speziali Date: Wed, 23 Mar 2022 11:37:00 +0100 Subject: [PATCH] Removed separate Config class --- src/Calendar/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Calendar/index.ts b/src/Calendar/index.ts index cbfd84e..16ac2f0 100644 --- a/src/Calendar/index.ts +++ b/src/Calendar/index.ts @@ -14,7 +14,9 @@ export default class Calendar { constructor(json) { this.jsonContent = json; - this.groupType = json["group"] ? json["group"].charAt(0) : GroupTypes.Day; + this.groupType = json["group"] + ? json["group"].charAt(0).toUpperCase() + : GroupTypes.Day; this.events = new Events(json["events"]); }