Refactor organizer color assignment in exportWorships function: Update the logic to dynamically set the organizer color based on the worship format, improving visual consistency in exported documents.
All checks were successful
Deploy miriamgemeinde / deploy (push) Successful in 6s
All checks were successful
Deploy miriamgemeinde / deploy (push) Successful in 6s
This commit is contained in:
@@ -2690,7 +2690,7 @@ exports.exportWorships = async (req, res) => {
|
||||
const titleColor = format === 'newsletter'
|
||||
? (isNeighborInvitation ? '0432FF' : '000000')
|
||||
: (isNeighborInvitation ? '0432FF' : '009051');
|
||||
const organizerColor = 'EE0000';
|
||||
const organizerColor = format === 'newsletter' ? '000000' : 'EE0000';
|
||||
const serviceColor = '0070C0';
|
||||
const organColor = 'FF9300';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user