Fix 4bytes trace map not loading on prod build

This commit is contained in:
Willian Mitsuda 2021-11-22 15:57:28 -03:00
parent 48686249f3
commit c2629b5830
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ export const useBatch4Bytes = (
const [fourBytesMap, setFourBytesMap] = useState<FourBytesMap>({}); const [fourBytesMap, setFourBytesMap] = useState<FourBytesMap>({});
useEffect(() => { useEffect(() => {
if (!rawFourByteSigs || !assetsURLPrefix) { if (!rawFourByteSigs || assetsURLPrefix === undefined) {
setFourBytesMap({}); setFourBytesMap({});
return; return;
} }