Skip to content

Commit

Permalink
Affront the eslinter
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Aug 6, 2018
1 parent ac397b9 commit f56f5cd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions client/components/checklist/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,22 @@ export class Task extends PureComponent {
<ToggleContainer
className="checklist__task-icon"
onClick={ onDismiss }
aria-pressed={ onDismiss ? ( completed ? 'true' : 'false' ) : undefined }
aria-pressed={
/* eslint-disable-next-line no-nested-ternary */
onDismiss ? ( completed ? 'true' : 'false' ) : undefined
}
>
<ScreenReaderText>
{ onDismiss
{ /* eslint-disable no-nested-ternary */
onDismiss
? completed
? translate( 'Mark as uncompleted' )
: translate( 'Mark as completed' )
: completed
? translate( 'Complete' )
: translate( 'Not complete' ) }
: translate( 'Not complete' )
/* eslint-enable no-nested-ternary */
}
</ScreenReaderText>
<Gridicon icon="checkmark" size={ 18 } />
</ToggleContainer>
Expand Down

0 comments on commit f56f5cd

Please sign in to comment.