diff --git a/src/maksut-ui/app/lib/data.ts b/src/maksut-ui/app/lib/data.ts index 8e76e2f..5798699 100644 --- a/src/maksut-ui/app/lib/data.ts +++ b/src/maksut-ui/app/lib/data.ts @@ -4,7 +4,6 @@ import { notFound } from "next/navigation"; export const fetchLaskutBySecret = async (secret: string | undefined): Promise<{laskut: Array, contact?: string}> => { const response = await fetch(`${backendUrl}/laskut-by-secret?secret=${secret}`, {cache: "no-cache"}) - throw Error() if (response.ok) { return await response.json() } else if (response.status === 404) {