convert value to number on set (#390)

This commit is contained in:
Kendall Garner 2023-12-05 04:20:19 +00:00 committed by GitHub
parent 1d2e9484d8
commit 3f9cdab450
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -326,7 +326,9 @@ export const MpvSettings = () => {
<NumberInput
defaultValue={settings.mpvProperties.replayGainFallbackDB}
width={75}
onBlur={(e) => handleSetMpvProperty('replayGainFallbackDB', e)}
onBlur={(e) =>
handleSetMpvProperty('replayGainFallbackDB', Number(e.currentTarget.value))
}
/>
),
description: t('setting.replayGainFallback', {