From c2629b58303674ba3784fd02af1b13e6693f1a8a Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Mon, 22 Nov 2021 15:57:28 -0300 Subject: [PATCH] Fix 4bytes trace map not loading on prod build --- src/use4Bytes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/use4Bytes.ts b/src/use4Bytes.ts index 3cf3f27..690d5a3 100644 --- a/src/use4Bytes.ts +++ b/src/use4Bytes.ts @@ -69,7 +69,7 @@ export const useBatch4Bytes = ( const [fourBytesMap, setFourBytesMap] = useState({}); useEffect(() => { - if (!rawFourByteSigs || !assetsURLPrefix) { + if (!rawFourByteSigs || assetsURLPrefix === undefined) { setFourBytesMap({}); return; }