Skip to content

Commit

Permalink
Merge branch 'main' into release-2024.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ztefanie authored Dec 9, 2024
2 parents bd3a491 + a384303 commit 155a242
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,11 @@ const useCardGenerator = (region: Region): UseCardGeneratorReturn => {

const generateCardsPdf = useCallback(
async (applicationIdToMarkAsProcessed?: number) => {
// "Berechtigungskarte_" prefix needs to always be in the filename to ensure Nuernberg automation will not break
await generateCards(
(codes: CreateCardsResult[], cards: Card[]) => generatePdf(codes, cards, projectConfig.pdf, region),
cards.length === 1
? `${normalizeString(cards[0].fullName)}-${new Date().getFullYear()}.pdf`
? `Berechtigungskarte_${normalizeString(cards[0].fullName)}-${new Date().getFullYear()}.pdf`
: 'berechtigungskarten.pdf',
applicationIdToMarkAsProcessed
)
Expand Down

0 comments on commit 155a242

Please sign in to comment.