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
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue