Only allow refund after full withdraw (#5036)
This commit is contained in:
parent
b5e460d53a
commit
ac229cc2fc
@ -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 (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user