Skip to content

Commit

Permalink
fix ETH price on SEP & navlink breaks on prod (#91 pt.2 & 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Sep 22, 2023
1 parent f1f0853 commit e6e3747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const NavLink = ({ href, children }: { href: string; children: React.ReactNode }
passHref
className={`${
isActive ? "bg-secondary shadow-md" : ""
} hover:bg-secondary hover:shadow-md focus:!bg-secondary py-1.5 px-3 text-sm rounded-full gap-2`}
} hover:bg-secondary hover:shadow-md focus:!bg-secondary active:!text-neutral py-1.5 px-3 text-sm rounded-full gap-2 grid grid-flow-col`}
>
{children}
</Link>
Expand Down
6 changes: 5 additions & 1 deletion packages/nextjs/utils/scaffold-eth/fetchPriceFromUniswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const ABI = parseAbi([

export const fetchPriceFromUniswap = async (): Promise<number> => {
const configuredNetwork = getTargetNetwork();
if (configuredNetwork.nativeCurrency.symbol !== "ETH" && !configuredNetwork.nativeCurrencyTokenAddress) {
if (
configuredNetwork.nativeCurrency.symbol !== "ETH" &&
configuredNetwork.nativeCurrency.symbol !== "SEP" &&
!configuredNetwork.nativeCurrencyTokenAddress
) {
return 0;
}
try {
Expand Down

0 comments on commit e6e3747

Please sign in to comment.