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

View File

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