1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-14 17:24:51 +01:00

Redundant Boolean call

This commit is contained in:
Bogdan Fazakas 2021-02-17 15:42:22 +02:00
parent 7d25bc07ce
commit ee25e29de0

View File

@ -40,9 +40,7 @@ export default function FormPublish({
field: FormFieldProps
) {
const value =
field.type === 'checkbox'
? !Boolean(JSON.parse(e.target.value))
: e.target.value
field.type === 'checkbox' ? !JSON.parse(e.target.value) : e.target.value
validateField(field.name)
setFieldValue(field.name, value)
}