Skip to content

Commit

Permalink
Merge pull request #106 from hansmrtn/develop
Browse files Browse the repository at this point in the history
quick bugfix
  • Loading branch information
hmrtn authored Jan 14, 2022
2 parents 85595e5 + 899db9c commit 46601f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-app/src/routes/party/Party.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function Party({
const [isParticipant, setIsParticipant] = useState(false);
const [distribution, setDistribution] = useState();
const [strategy, setStrategy] = useState("quadratic");
const [isPaid, setIsPaid] = useState(false);
const [isPaid, setIsPaid] = useState(true);

const db = new MongoDBController();

Expand All @@ -45,6 +45,7 @@ export default function Party({
const participating = party.data.participants.includes(address);
setAccountVoteData(votes);
setCanVote(votes.length === 0 && participating);
setIsPaid(party.data.receipts.length > 0)
setPartyData(party.data);
}, []);

Expand Down

0 comments on commit 46601f1

Please sign in to comment.