diff --git a/components/bounty/bounty-card.tsx b/components/bounty/bounty-card.tsx index f0f5c8a5..cc9fcdfc 100644 --- a/components/bounty/bounty-card.tsx +++ b/components/bounty/bounty-card.tsx @@ -20,7 +20,7 @@ import { getRoundPhase } from "@/hooks/use-lightning-rounds"; import { BookmarkButton } from "./bookmark-button"; interface BountyCardProps { - bounty: BountyFieldsFragment; + bounty: BountyFieldsFragment & Partial; onClick?: () => void; variant?: "grid" | "list"; } @@ -229,7 +229,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 +267,4 @@ export function BountyCard({ ); -} \ No newline at end of file +}