diff --git a/pages/api/schedule.ts b/pages/api/schedule.ts index 30d2c89..accfb60 100644 --- a/pages/api/schedule.ts +++ b/pages/api/schedule.ts @@ -196,10 +196,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) // if day is thursday, change the note to "Специален текст с линк към снимка" : public/images/cart_EN.jpg - opened in a popup modal //check if the day is thursday const dayOfWeek = common.getDayOfWeekNameEnEnumForDate(shift.date); - if (dayOfWeek == "Thursday") { + if (dayOfWeek == "Thursday" && shift.requiresTransport) { // For Thursday, use the regular transport text (if any) but add a special note indicator let originalNotes = shift.notes || ""; - shift.notes = `${originalNotes} [Специални инструкции] + shift.notes = `Специални инструкции ↗ + ${originalNotes}