Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloercoli committed Nov 7, 2018
1 parent 720060f commit 65b4831
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/editor/src/components/rich-text/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,18 +269,18 @@ export class RichText extends Component {
}
// The check below allows us to avoid updating the content right after an `onChange` call.
// The first time the component is drawn `lastContent` and `lastEventCount ` are both undefined
if ( this.lastEventCount &&
if ( this.lastEventCount &&
nextProps.value &&
this.lastContent &&
nextProps.value === this.lastContent) {
nextProps.value === this.lastContent ) {
return false;
}

// If the component is changed React side (merging/splitting/custom text actions) we need to make sure
// If the component is changed React side (merging/splitting/custom text actions) we need to make sure
// the native is updated as well
if ( nextProps.value &&
this.lastContent &&
nextProps.value !== this.lastContent) {
nextProps.value !== this.lastContent ) {
this.lastEventCount = undefined; // force a refresh on the native side
}

Expand Down

0 comments on commit 65b4831

Please sign in to comment.