fix(lab): Rewrote chained ternary
This commit is contained in:
parent
cbdde9d236
commit
70bec9fa51
1 changed files with 2 additions and 6 deletions
|
@ -70,12 +70,8 @@ const MeasurementInput = ({ m, gist, app, updateMeasurements }) => {
|
|||
${isValid() === true && 'border-success text-neutral-content'}
|
||||
${isValid() === null && 'border-base-200 text-base-content'}
|
||||
`}>
|
||||
{isValid() === null
|
||||
? ''
|
||||
: valid
|
||||
? '👍'
|
||||
: '🤔'
|
||||
}
|
||||
{(isValid() === true) && '👍'}
|
||||
{(isValid() === false) && '🤔'}
|
||||
</span>
|
||||
<span className={`
|
||||
${valid === false && 'bg-error text-neutral-content'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue