Skip to content

Commit

Permalink
Fixed the Travis CI error: "TypeError: Cannot read property 'range' o…
Browse files Browse the repository at this point in the history
…f null"

It is deadly to mix "npm install" and yarn, we need to pick one or the
other and stick with it.

babel/babel-eslint#681 (comment)
  • Loading branch information
SailingSteve committed Jul 23, 2019
1 parent 479a12e commit f47704a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/actions/FacebookActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default {
}

if (this.facebookApi()) {
const fbApiForInvitableFriends = '/me?fields=invitable_friends.limit(1000){name,id,picture.width(' + pictureWidthVerified + ').height(' + pictureHeightVerified + ')'; // eslint-disable-line
const fbApiForInvitableFriends = `/me?fields=invitable_friends.limit(1000){name,id,picture.width(${pictureWidthVerified}).height(${pictureHeightVerified})`;
this.facebookApi().api(
fbApiForInvitableFriends,
(response) => {
Expand Down Expand Up @@ -283,7 +283,7 @@ export default {
// FB.getLoginStatus does an ajax call and when you call FB.login on it's response, the popup that would open
// as a result of this call is blocked. A solution to this problem would be to to specify status: true in the
// options object of FB.init and you need to be confident that login status has already loaded.
oAuthLog(__filename + ': this.facebookApi().login'); // eslint-disable-line
oAuthLog(`${__filename} this.facebookApi().login`);

if (this.facebookApi()) {
const innerThis = this;
Expand Down

0 comments on commit f47704a

Please sign in to comment.