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:
parent
7d25bc07ce
commit
ee25e29de0
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user