Skip to content

Commit

Permalink
challenge 0: fix vercel deployments (#91)
Browse files Browse the repository at this point in the history
* lock nextjs version

* backmerge fix 0 ETH price on sepolia

* fix daisy UI navlink break when deployed

* update yarn.lock with next locked version
  • Loading branch information
technophile-04 authored Sep 20, 2023
1 parent a84c35a commit 84ae094
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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-2 text-sm rounded-full gap-1.5`}
} 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
2 changes: 1 addition & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@uniswap/v2-sdk": "^3.0.1",
"daisyui": "^3.5.1",
"kubo-rpc-client": "^3.0.1",
"next": "^13.1.6",
"next": "13.1.6",
"nextjs-progressbar": "^0.0.16",
"qrcode.react": "^3.1.0",
"react": "^18.2.0",
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
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ __metadata:
eslint-config-prettier: ^8.5.0
eslint-plugin-prettier: ^4.2.1
kubo-rpc-client: ^3.0.1
next: ^13.1.6
next: 13.1.6
nextjs-progressbar: ^0.0.16
postcss: ^8.4.16
prettier: ^2.8.4
Expand Down Expand Up @@ -10711,7 +10711,7 @@ __metadata:
languageName: node
linkType: hard

"next@npm:^13.1.6":
"next@npm:13.1.6":
version: 13.1.6
resolution: "next@npm:13.1.6"
dependencies:
Expand Down

0 comments on commit 84ae094

Please sign in to comment.