mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
fix: downloaded files should have _signed (#1149)
Modifies the generated filename for the downloaded PDF by appending "_signed" to the base title. ## Changes Made - Update the filename in the downloadFile function call to append "_signed" to the baseTitle variable. ## Testing Performed Tested the `downloadPDF` function locally to ensure that the downloaded PDF file has the correct filename with "_signed" appended.
This commit is contained in:
@ -18,7 +18,7 @@ export const downloadPDF = async ({ documentData, fileName }: DownloadPDFProps)
|
|||||||
const baseTitle = (fileName ?? 'document').replace(/\.pdf$/, '');
|
const baseTitle = (fileName ?? 'document').replace(/\.pdf$/, '');
|
||||||
|
|
||||||
downloadFile({
|
downloadFile({
|
||||||
filename: `${baseTitle}.pdf`,
|
filename: `${baseTitle}_signed.pdf`,
|
||||||
data: blob,
|
data: blob,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user