From 6f5166254b64d82876d0ea7424b09ff824d4beae Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Thu, 10 Apr 2025 01:50:08 +0300 Subject: [PATCH] better styling and tone --- pages/api/schedule.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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}