diff --git a/app/lib/actions/monthActions.ts b/app/lib/actions/monthActions.ts index 03dcea8..b8fc6b4 100644 --- a/app/lib/actions/monthActions.ts +++ b/app/lib/actions/monthActions.ts @@ -52,7 +52,8 @@ export const addMonth = withUser(async (user:AuthenticatedUser, { year, month }: paid: false, attachment: null, notes: null, - payedAmount: null + payedAmount: null, + barcodeImage: undefined, } as Bill }) } as BillingLocation); diff --git a/messages/en.json b/messages/en.json index 0f49e52..481c573 100644 --- a/messages/en.json +++ b/messages/en.json @@ -68,7 +68,7 @@ "bill-name-placeholder": "Bill name", "paid-checkbox": "Paid", "payed-amount": "Amount", - "barcode-disclaimer": "After scanning the code make sure the information is correct.
We are not liable in case of an incorrect payment.", + "barcode-disclaimer": "After scanning the code make sure the information is correct.

We are not liable in case of an incorrect payment.", "notes-placeholder": "Notes", "save-button": "Save", "cancel-button": "Cancel", diff --git a/messages/hr.json b/messages/hr.json index 4936344..08bfae6 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -68,7 +68,7 @@ "bill-name-placeholder": "Ime računa", "paid-checkbox": "Plaćeno", "payed-amount": "Iznos", - "barcode-disclaimer": "Nakon skeniranja bar koda obavezni provjeri jesu li svi podaci ispravni.
Ne snosimo odgovornost za slučaj pogrešno provedene uplate.", + "barcode-disclaimer": "Nakon skeniranja bar koda obavezni provjeri jesu li svi podaci ispravni.

Ne snosimo odgovornost za slučaj pogrešno provedene uplate.", "notes-placeholder": "Bilješke", "save-button": "Spremi", "cancel-button": "Odbaci", diff --git a/middleware.ts b/middleware.ts index 867b6fb..afb06a9 100644 --- a/middleware.ts +++ b/middleware.ts @@ -43,7 +43,8 @@ export default async function middleware(req: NextRequest) { export const config = { // for these paths middleware will not be called + // `pdf.worker.min.mjs` is a web worker code used by pdf.js matcher: [ - '/((?!api|_next/static|_next/image|.*\\.png$|.*\\.webm$).*)', + '/((?!api|_next/static|_next/image|.*\\.png$|pdf.worker.min.mjs$|.*\\.webm$).*)', ], }; \ No newline at end of file