diff --git a/src/components/bounty/ClaimList.tsx b/src/components/bounty/ClaimList.tsx
index 0558928..97ed83c 100644
--- a/src/components/bounty/ClaimList.tsx
+++ b/src/components/bounty/ClaimList.tsx
@@ -17,6 +17,7 @@ export default function ClaimList({
}) {
const isVotingOrAcceptedBounty =
!!votingClaim || claims.some((claim) => claim.accepted);
+
return (
<>
- {votingClaim && }
+ {votingClaim && (
+ claim.accepted)}
+ />
+ )}
diff --git a/src/components/bounty/Voting.tsx b/src/components/bounty/Voting.tsx
index 849799c..5df8ccf 100644
--- a/src/components/bounty/Voting.tsx
+++ b/src/components/bounty/Voting.tsx
@@ -9,7 +9,13 @@ import { useAccount, useSwitchChain, useWriteContract } from 'wagmi';
import abi from '@/constant/abi/abi';
import { useMutation, useQuery } from '@tanstack/react-query';
-export default function Voting({ bountyId }: { bountyId: string }) {
+export default function Voting({
+ bountyId,
+ isAcceptedBounty,
+}: {
+ bountyId: string;
+ isAcceptedBounty: boolean;
+}) {
const account = useAccount();
const chain = useGetChain();
const writeContract = useWriteContract({});
@@ -153,30 +159,34 @@ export default function Voting({ bountyId }: { bountyId: string }) {
>
) : (
-
+ !isAcceptedBounty && (
+
+ )
)}
-
- Deadline:{' '}
- {new Date(
- parseInt(voting.data.deadline ?? '0') * 1000
- ).toLocaleString()}
-
+ {!isAcceptedBounty && (
+
+ Deadline:{' '}
+ {new Date(
+ parseInt(voting.data.deadline ?? '0') * 1000
+ ).toLocaleString()}
+
+ )}
>
) : (
-
Loading voting data...
+
Loading voting data...
)}
);