Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKurt committed Oct 2, 2024
1 parent d990ec7 commit 197aed5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { BoltIcon } from "@heroicons/react/24/outline";
import { TToken } from "common";
import { getFormattedRoundId } from "../../common/utils/utils";
import { PassportWidget } from "../../common/PassportWidget";
import { formatUnits } from "ethers/lib/utils";

export function RoundInCart(
props: React.ComponentProps<"div"> & {
Expand Down Expand Up @@ -54,7 +53,9 @@ export function RoundInCart(
roundId: getFormattedRoundId(round?.id ?? zeroAddress),
projectId: proj.projectRegistryId,
amount: parseUnits(
proj.amount ?? "0",
typeof proj.amount === "string" && proj.amount !== "NaN"
? proj.amount
: "0",
votingTokenForChain.decimals ?? 18
),
grantAddress: proj.recipient,
Expand Down

0 comments on commit 197aed5

Please sign in to comment.