Skip to content

Commit

Permalink
Update src/components/IPFSSubpathRedirect.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Zoltu <[email protected]>
  • Loading branch information
KillariDev and MicahZoltu authored Jan 29, 2024
1 parent abba499 commit 884b068
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/IPFSSubpathRedirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ export const IpfsSubpathRedirect = () => {
useEffect(() => {
const hashFromBase = extractIpfsHashFromBasePath()

if (!hashFromBase) {
console.info('Base ref does not contain an IPFS hash')
return
}
if (!hashFromBase) return

const redirectUrl = generateIpfsSubdomainUrl(hashFromBase)
if (!redirectUrl) return
Expand Down

0 comments on commit 884b068

Please sign in to comment.