add payout percent frontend validation
This commit is contained in:
parent
7703d274bd
commit
3baa6d258f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue