Only allow refund after full withdraw (#5036)

This commit is contained in:
Jaco Greeff 2021-04-07 09:27:58 +03:00 committed by GitHub
parent b5e460d53a
commit ac229cc2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ function Fund ({ bestNumber, className, isOngoing, leasePeriod, value: { childKe
: leasePeriod.currentPeriod.gt(firstSlot)
);
const canContribute = isOngoing && !isCapped && !isWinner && !!blocksLeft;
const canDissolve = raised.isZero() || hasEnded;
const canDissolve = raised.isZero() && hasEnded;
const canWithdraw = !raised.isZero() && hasEnded;
return (