Skip to content

Commit

Permalink
fix: issue #52
Browse files Browse the repository at this point in the history
  • Loading branch information
yukigesho committed Nov 19, 2024
1 parent dc60af7 commit 717ac78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/bounty/BountyInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export default function BountyInfo({ bountyId }: { bountyId: string }) {
chain={chain}
bountyId={bountyId}
inProgress={Boolean(bounty.data.inProgress)}
isVoting={!!bounty.data.is_voting && !!bounty.data.inProgress}
issuer={bounty.data.issuer}
/>
)}
Expand Down
4 changes: 3 additions & 1 deletion src/components/bounty/BountyMultiplayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ export default function BountyMultiplayer({
bountyId,
inProgress,
issuer,
isVoting,
}: {
chain: Chain;
bountyId: string;
inProgress: boolean;
issuer: string;
isVoting: boolean;
}) {
const [showParticipants, setShowParticipants] = useState(false);
const account = useAccount();
Expand Down Expand Up @@ -88,7 +90,7 @@ export default function BountyMultiplayer({
</div>
{account.address?.toLocaleLowerCase() !== issuer.toLocaleLowerCase() ? (
inProgress && isCurrentUserAParticipant ? (
<Withdraw bountyId={bountyId} />
!isVoting && <Withdraw bountyId={bountyId} />
) : (
<JoinBounty bountyId={bountyId} />
)
Expand Down

0 comments on commit 717ac78

Please sign in to comment.