@MMRIZE (tagged as author)
I have 4 transforms attempting to work at the same time, the last one “busy” doesn’t work - can someone explain why?
eventTransformer: (ev) => {
if (ev.title.search("🏠") > -1) {
ev.title = ev.title.replace("🏠 Personal Commitment","Private (Brendan)");
ev.color = 'yellow';
}
if (ev.title.search("✈ Flight") > -1) {
ev.title = ev.title.replace("✈ Flight","Private (Brendan)");
ev.color = 'yellow';
}
if (ev.title.search("🚌️") > -1) {
ev.title = ev.title.replace("🚌️ Transit","Private (Brendan)");
ev.color = 'yellow';
}
if (ev.title.search("busy️") > -1) {
ev.title = ev.title.replace("busy","Private (Mom)");
ev.color = 'yellow';
}
return ev
},