diff --git a/apps/web/src/containers/DownloadButton.tsx b/apps/web/src/containers/DownloadButton.tsx index 8866c65..da3c89f 100644 --- a/apps/web/src/containers/DownloadButton.tsx +++ b/apps/web/src/containers/DownloadButton.tsx @@ -2,6 +2,7 @@ import { useDownloadUrl, useStore } from '../hooks' export function DownloadButton() { const { selectedFile, tickedDownloadAll } = useStore() + const disabled = !(selectedFile || tickedDownloadAll) const downloadUrl = useDownloadUrl() const onClick = () => { @@ -9,7 +10,7 @@ export function DownloadButton() { } return ( - )