Disallow not whole numbers
This commit is contained in:
parent
26021f75ab
commit
05c8cf2c38
1 changed files with 2 additions and 0 deletions
|
|
@ -121,6 +121,8 @@ const AwakeningSelect = (props: Props) => {
|
|||
error = t('awakening.errors.value_too_high', {
|
||||
maxValue: maxValue,
|
||||
})
|
||||
} else if (value % 1 != 0) {
|
||||
error = t('awakening.errors.value_not_whole')
|
||||
} else if (!value || value <= 0) {
|
||||
error = t('awakening.errors.value_empty')
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue