Skip to content

Commit

Permalink
corrects an if to make it more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Apr 2, 2019
1 parent ed61996 commit 0bbf891
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ class ImageEdit extends Component {
this.setState( {
isEditing: ! this.state.isEditing,
} );
if ( ! this.state.isEditing ) {
speak( __( 'You are now editing the image in the image block.' ) );
} else {
if ( this.state.isEditing ) {
speak( __( 'You are now viewing the image in the image block.' ) );
} else {
speak( __( 'You are now editing the image in the image block.' ) );
}
}

Expand Down

0 comments on commit 0bbf891

Please sign in to comment.