From 1ca27e3fa48a8b460c1158bf796cf170d7fc98b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Brzezin=CC=81ski?= Date: Tue, 3 Oct 2023 21:22:08 +0200 Subject: [PATCH] fix --- utils/arweave.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/arweave.ts b/utils/arweave.ts index 43c0cd65be..243e0dd987 100644 --- a/utils/arweave.ts +++ b/utils/arweave.ts @@ -29,7 +29,7 @@ async function fetchArweaveFile(url: string) { const apiResponse = await axios.get(apiUrl, { signal: controller.signal, }) - if (apiResponse.status === 200) { + if (apiResponse?.data?.description) { return apiResponse.data.description } else { console.warn('could not arweave file', {