From c0f8f0fcc9ec5f9f5e6897a4d36b368e70003ea6 Mon Sep 17 00:00:00 2001 From: Jubal Mabaquiao Date: Thu, 6 Jun 2024 15:17:26 +0800 Subject: [PATCH] remove ipfs detection logs (#269) --- app/ts/components/IPFSSubpathRedirect.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/ts/components/IPFSSubpathRedirect.tsx b/app/ts/components/IPFSSubpathRedirect.tsx index 837bb7ef..3e039503 100644 --- a/app/ts/components/IPFSSubpathRedirect.tsx +++ b/app/ts/components/IPFSSubpathRedirect.tsx @@ -12,12 +12,8 @@ export const IPFSSubpathRedirect = () => { function generateIPFSRedirectUrl() { const cidFromPath = extractHashFromBasePath() - console.log(cidFromPath) - if (!cidFromPath) { - console.log('No IPFS subpath detected') - return - } + if (!cidFromPath) return const v1CidString = CID.parse(cidFromPath).toV1().toString() if (!v1CidString) return