Small cleanup of parseInt
This commit is contained in:
parent
a1c22acaaf
commit
88b795cbd3
1 changed files with 3 additions and 5 deletions
|
|
@ -125,11 +125,9 @@ const AwakeningSelectWithInput = ({
|
|||
const input = inputRef.current
|
||||
if (input && !handleInputError(parseFloat(input.value))) return
|
||||
|
||||
setCurrentLevel(parseInt(event.target.value))
|
||||
sendValues(
|
||||
currentAwakening ? currentAwakening.id : '0',
|
||||
parseInt(event.target.value)
|
||||
)
|
||||
const newLevel = parseInt(event.target.value)
|
||||
setCurrentLevel(newLevel)
|
||||
sendValues(currentAwakening ? currentAwakening.id : '0', newLevel)
|
||||
}
|
||||
|
||||
// Methods: Handle error
|
||||
|
|
|
|||
Loading…
Reference in a new issue