Fixes for the production docker image
This commit is contained in:
parent
ea7b7a9f75
commit
052b2f61e0
@ -26,7 +26,7 @@ const MethodName: React.FC<MethodNameProps> = ({ data }) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const signatureURL = fourBytesURL(config.assetsURLPrefix, fourBytes);
|
||||
const signatureURL = fourBytesURL(config.assetsURLPrefix ?? "", fourBytes);
|
||||
fetch(signatureURL)
|
||||
.then(async (res) => {
|
||||
if (!res.ok) {
|
||||
|
@ -19,7 +19,7 @@ const InternalTokenLogo: React.FC<TokenLogoProps> = ({ address, name }) => {
|
||||
|
||||
const srcList: string[] = [];
|
||||
if (config) {
|
||||
srcList.push(tokenLogoURL(config.assetsURLPrefix, address));
|
||||
srcList.push(tokenLogoURL(config.assetsURLPrefix ?? "", address));
|
||||
}
|
||||
srcList.push("/eth-diamond-black.png");
|
||||
const { src } = useImage({ srcList });
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { useState, useEffect } from "react";
|
||||
|
||||
export type OtterscanConfig = {
|
||||
erigonURL: string;
|
||||
assetsURLPrefix: string;
|
||||
erigonURL?: string;
|
||||
assetsURLPrefix?: string;
|
||||
};
|
||||
|
||||
export const useConfig = (): [boolean?, OtterscanConfig?] => {
|
||||
|
Loading…
Reference in New Issue
Block a user