Skip to content

Commit

Permalink
linting and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
josojo committed Dec 5, 2023
1 parent 7ed58bd commit 189fd5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export const GAS_PRICE_INCREASE_PERCENTAGE = 50; // 50%

export const DEPOSIT_CHECK_WORD = "I understand";

export const ETH_TOKEN_LOGO_URI = "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/info/logo.png";
export const ETH_TOKEN_LOGO_URI =
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/info/logo.png";

export const POLYGON_SUPPORT_URL = "https://support.polygon.technology";

Expand Down Expand Up @@ -103,7 +104,7 @@ export const getChains = ({
return Promise.all([
ethereumProvider.getNetwork().catch(() => Promise.reject(ProviderError.Ethereum)),
polygonZkEVMProvider.getNetwork().catch(() => Promise.reject(ProviderError.PolygonZkEVM)),
poeContract.networkName().catch(() => Promise.reject(ProviderError.Ethereum)),
poeContract.networkName().catch(() => Promise.reject(ProviderError.Ethereum)),
]).then(([ethereumNetwork, polygonZkEVMNetwork, polygonZkEVMNetworkName]) => [
{
bridgeContractAddress: ethereum.bridgeContractAddress,
Expand All @@ -127,7 +128,7 @@ export const getChains = ({
explorerUrl: polygonZkEVM.explorerUrl,
Icon: PolygonZkEVMChainIcon,
key: "backstop-protocol",
name: "Backstop protocol",
name: polygonZkEVMNetworkName,
nativeCurrency: {
decimals: 18,
name: "FORK",
Expand Down
7 changes: 3 additions & 4 deletions src/views/home/components/token-list/token-list.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const TokenList: FC<TokenListProps> = ({
status: "pending",
});
const [defaultToken, setDefaultToken] = useState<Token | null>(null);
const [_, setIsLoadingDefaultToken] = useState(false);
const [, setIsLoadingDefaultToken] = useState(false);
const inputRef = useRef<HTMLInputElement>(null);

const getTokenBalance = useCallback(
Expand Down Expand Up @@ -150,8 +150,7 @@ export const TokenList: FC<TokenListProps> = ({
}
};


useEffect(() => {
useEffect(() => {
const fetchDefaultToken = async () => {
if (env?.forkonomicTokenAddress && ethersUtils.isAddress(env?.forkonomicTokenAddress)) {
setIsLoadingDefaultToken(true);
Expand All @@ -177,7 +176,7 @@ export const TokenList: FC<TokenListProps> = ({
if (defaultToken) {
setFilteredTokens([defaultToken, ...tokens]);
}
}, [defaultToken, tokens]);
}, [defaultToken, tokens]);

useEffect(() => {
if (customToken.status === "successful") {
Expand Down

0 comments on commit 189fd5e

Please sign in to comment.