Skip to content

Commit

Permalink
add payment category (#2)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
dgokcin authored Aug 12, 2024
1 parent 91aeb9e commit 85d245f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const emojiMap = {
'interview': '🎙️',
'flight': '🛫',
'journey': '🚆',
'trip': '🚆',
'stay': '🏠',
'reservation': '🏨',
'holy shred': '💪',
Expand Down Expand Up @@ -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")) {
Expand Down

0 comments on commit 85d245f

Please sign in to comment.