From 85d245f71dba6aefe8396826ed0d7f5f6a239622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?deniz=20g=C3=B6k=C3=A7in?= <33603535+dgokcin@users.noreply.github.com> Date: Mon, 12 Aug 2024 13:29:37 +0200 Subject: [PATCH] add payment category (#2) * feat: new category for payments * feat: add trip to emojiMap and color events adds trip to the emojiMap and includes it in the color events logic --- Code.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code.js b/Code.js index f19cfeb..4b2f243 100644 --- a/Code.js +++ b/Code.js @@ -3,6 +3,7 @@ const emojiMap = { 'interview': '🎙️', 'flight': '🛫', 'journey': '🚆', + 'trip': '🚆', 'stay': '🏠', 'reservation': '🏨', 'holy shred': '💪', @@ -67,7 +68,7 @@ function ColorEvents() { if (originalTitle.includes("interview")) { color = CalendarApp.EventColor.YELLOW; Logger.log("Title: " + title + " - Color to print: YELLOW"); - } else if (originalTitle.includes("flight") || originalTitle.includes("journey")) { + } else if (originalTitle.includes("flight") || originalTitle.includes("journey") || originalTitle.includes("trip")) { color = CalendarApp.EventColor.ORANGE; Logger.log("Title: " + title + " - Color to print: ORANGE"); } else if (originalTitle.includes("stay") || originalTitle.includes("reservation")) {