Skip to content

Commit

Permalink
fix: do not allow navigate without download URL being set (storacha#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored Jan 10, 2024
1 parent aec179b commit a61690f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export function ShareSpace (): JSX.Element {
style={{ opacity: downloadUrl !== '' ? '1' : '0.2' }}
href={downloadUrl ?? ''}
download={downloadName(downloadUrl !== '', value)}
onClick={e => downloadUrl === '' && e.preventDefault()}
>
Download UCAN
</a>
Expand Down

0 comments on commit a61690f

Please sign in to comment.