This commit is contained in:
@@ -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();
|
||||
})}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user