diff --git a/components/bounty/bounty-card.tsx b/components/bounty/bounty-card.tsx index f0f5c8a5..1345e110 100644 --- a/components/bounty/bounty-card.tsx +++ b/components/bounty/bounty-card.tsx @@ -19,8 +19,11 @@ import { useEscrowPool } from "@/hooks/use-escrow"; import { getRoundPhase } from "@/hooks/use-lightning-rounds"; import { BookmarkButton } from "./bookmark-button"; +type CardBounty = BountyFieldsFragment & + Partial>; + interface BountyCardProps { - bounty: BountyFieldsFragment; + bounty: CardBounty; onClick?: () => void; variant?: "grid" | "list"; } @@ -229,7 +232,7 @@ export function BountyCard({ {bounty.type === "MULTI_WINNER_MILESTONE" && ( - {(bounty as unknown as Bounty).totalSlotsOccupied ?? 0} / {(bounty as unknown as Bounty).maxSlots ?? 5} slots + {bounty.totalSlotsOccupied ?? 0} / {bounty.maxSlots ?? 5} slots )} @@ -267,4 +270,4 @@ export function BountyCard({ ); -} \ No newline at end of file +}