fix getPossibleInfiltrations not returning enough info and fix donation saying Invalid input before unlocking

This commit is contained in:
Olivier Gagnon
2022-07-21 15:32:54 -04:00
parent 5c551348ed
commit 7f20dc2ee8
3 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ export function DonateOption(props: IProps): React.ReactElement {
}
function Status(): React.ReactElement {
if (donateAmt === null) return <></>;
if (isNaN(donateAmt)) return <></>;
if (!canDonate()) {
if (props.p.money < donateAmt) return <Typography>Insufficient funds</Typography>;
return <Typography>Invalid donate amount entered!</Typography>;