fix download link
Some checks failed
Deploy Amap / deploy (push) Failing after 22s

This commit is contained in:
2026-10-14 22:21:42 +02:00
parent 1a67617b3f
commit 1484a114e0
2 changed files with 3 additions and 6 deletions

View File

@@ -343,8 +343,8 @@ export function Contract() {
<ContractRecap
opened={isRecapModalOpened}
close={closeRecapModal}
pdfUrl={pdfUrl}
contractName={`${form.name}-${form.season}`}
pdfUrl={pdfUrl}
/>
<Space h="15vh"></Space>
<Overlay

View File

@@ -35,10 +35,7 @@ export function ContractRecap({ opened, close, contractName, pdfUrl }: ContractR
return (
<Modal
opened={opened}
onClose={() => {
URL.revokeObjectURL(pdfUrl);
close();
}}
onClose={close}
size={"55rem"}
title={t("contract recap", { capfirst: true })}
>
@@ -52,7 +49,7 @@ export function ContractRecap({ opened, close, contractName, pdfUrl }: ContractR
onSubmit={form.onSubmit(() => {
const link = document.createElement("a");
link.href = pdfUrl;
link.download = contractName || "contract";
link.download = contractName;
link.click();
})}
>