Belegupload nach Freigabe und Bezahlt-Logik korrigieren
All checks were successful
CI / Build (push) Successful in 2m1s
CI / Deploy (push) Successful in 2m1s

This commit is contained in:
jan
2026-05-01 17:16:18 +02:00
parent 796e134ea2
commit bd59e50a51
4 changed files with 33 additions and 7 deletions

View File

@@ -769,6 +769,11 @@ export function DashboardShell({
})
)) as { proofUrl: string };
setMessage({ type: "success", text: "Rechnung wurde abgegeben und die Ausgabe ist jetzt bezahlt." });
startTransition(() => {
router.refresh();
});
return result.proofUrl;
} catch (error) {
const text = error instanceof Error ? error.message : "Beleg konnte nicht hochgeladen werden.";