Skip to content

Commit

Permalink
Backbone returns success as 1 not '1' -- correct the comparison
Browse files Browse the repository at this point in the history
This syncs over r133501-wpcom
  • Loading branch information
georgestephanis committed Mar 30, 2016
1 parent 9fd0221 commit 3f9d31f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/follow/js/views/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ var FollowExtendsPost = ( function() {
},

saveFollowSuccess: function( model, response, xhr ) {
// '1' is the only true success response
if ( '1' !== response ) {
// `1` is the only true success response
if ( 1 !== response ) {
this.saveFollowError( model, xhr );
return;
}
Expand Down

0 comments on commit 3f9d31f

Please sign in to comment.