add payout percent frontend validation

This commit is contained in:
Masala 2019-03-15 19:26:15 -04:00
parent 7703d274bd
commit 3baa6d258f
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ export function getCreateErrors(
return 'Payout percent is required';
} else if (Number.isNaN(parseInt(ms.payoutPercent, 10))) {
return 'Payout percent must be a valid number';
} else if (parseInt(ms.payoutPercent, 10) <= 0) {
return 'Payout percent must be greater than zero';
}
// Last one shows percentage errors