Disallow not whole numbers

This commit is contained in:
Justin Edmund 2022-12-23 18:55:19 -08:00
parent 26021f75ab
commit 05c8cf2c38

View file

@ -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 {