From 7ce8928f0716b1fb75ece7494cbaac8c1ab7f1fc Mon Sep 17 00:00:00 2001 From: hans Date: Thu, 13 Jan 2022 19:37:19 -0800 Subject: [PATCH] bugfix: receipts table quick fix --- packages/react-app/src/routes/party/Party.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-app/src/routes/party/Party.jsx b/packages/react-app/src/routes/party/Party.jsx index bf34982..2a2ca00 100644 --- a/packages/react-app/src/routes/party/Party.jsx +++ b/packages/react-app/src/routes/party/Party.jsx @@ -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(); @@ -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); }, []);