diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/supply-claimed-progress.stories.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/supply-claimed-progress.stories.tsx index 32fa1ece2df..8dd2e7fb88e 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/supply-claimed-progress.stories.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/supply-claimed-progress.stories.tsx @@ -1,6 +1,5 @@ import type { Meta, StoryObj } from "@storybook/nextjs"; -import { maxUint256 } from "thirdweb/utils"; -import { BadgeContainer } from "../../../../../../../../@/storybook/utils"; +import { BadgeContainer } from "@/storybook/utils"; import { SupplyClaimedProgress } from "./supply-claimed-progress"; const meta = { @@ -19,7 +18,7 @@ function StoryVariants() { return (
Claimed Supply diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/claim-tokens/claim-tokens-ui.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/claim-tokens/claim-tokens-ui.tsx index fefd74cb9b6..6e3c8784764 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/claim-tokens/claim-tokens-ui.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/claim-tokens/claim-tokens-ui.tsx @@ -26,7 +26,7 @@ import { getApprovalForTransaction, } from "thirdweb/extensions/erc20"; import { useActiveAccount, useSendTransaction } from "thirdweb/react"; -import { getClaimParams } from "thirdweb/utils"; +import { getClaimParams, maxUint256 } from "thirdweb/utils"; import { reportAssetBuyFailed, reportAssetBuySuccessful, @@ -328,9 +328,16 @@ export function TokenDropClaim(props: { claimedSupply={BigInt( toTokens(props.claimCondition.supplyClaimed, props.decimals), )} - totalSupply={BigInt( - toTokens(props.claimCondition.maxClaimableSupply, props.decimals), - )} + totalSupply={ + props.claimCondition.maxClaimableSupply === maxUint256 + ? "unlimited" + : BigInt( + toTokens( + props.claimCondition.maxClaimableSupply, + props.decimals, + ), + ) + } />