What is the best way to avoid receiving the error no nested ternary on typescript.
disablePortal
options={
// eslint-disable-next-line no-nested-ternary
units=== "mm"
? valuesMm
: units === "km"
? valueskm
: valuesls
}
I tried using this but it is giving an error
options={
units=== "mm"
? valuesMm
: [
units.slumpUnit === "cm"
? valuesCm
: valuesIn,
]
}