Small cleanup of parseInt

This commit is contained in:
Justin Edmund 2023-07-03 21:24:32 -07:00
parent a1c22acaaf
commit 88b795cbd3

View file

@ -125,11 +125,9 @@ const AwakeningSelectWithInput = ({
const input = inputRef.current const input = inputRef.current
if (input && !handleInputError(parseFloat(input.value))) return if (input && !handleInputError(parseFloat(input.value))) return
setCurrentLevel(parseInt(event.target.value)) const newLevel = parseInt(event.target.value)
sendValues( setCurrentLevel(newLevel)
currentAwakening ? currentAwakening.id : '0', sendValues(currentAwakening ? currentAwakening.id : '0', newLevel)
parseInt(event.target.value)
)
} }
// Methods: Handle error // Methods: Handle error