diff --git a/src/components/books/download-button.tsx b/src/components/books/download-button.tsx index a3fc10d..3795310 100644 --- a/src/components/books/download-button.tsx +++ b/src/components/books/download-button.tsx @@ -22,7 +22,7 @@ export function BookDownloadButton(props: BookDownloadButtonProps) { const handleDownload = (link?: string) => { if (!link) return; mutate(link, { - onSuccess: (url) => saveAs(url, `${titleToSlug(props.title)}${props.extension}`, link.includes("ipfs")), + onSuccess: (url) => saveAs(url, `${titleToSlug(props.title)}.${props.extension}`, link.includes("ipfs")), onError: () => toast.error("Failed to download file"), });