Linter said not to nest ternaries so I mixed in if statements: const onHideButton = type => { if (hideButton === null) { return sudo ? onParentHideButton(type) : !sudo ? true : undefined } else { return hideButton ? undefined : onParentHideButton(type) }


United States Trends
Loading...

Something went wrong.


Something went wrong.