pass the function, dont call it

This commit is contained in:
Alex Grintsvayg 2017-06-21 18:49:23 -04:00
parent a9fe3a0ed2
commit 0d5a04b451

View file

@ -202,7 +202,7 @@ lbryio.authenticate = function() {
return lbryio.setAuthToken(response.auth_token); return lbryio.setAuthToken(response.auth_token);
}); });
}) })
.then(lbryio.getCurrentUser()) .then(lbryio.getCurrentUser)
.then(resolve, reject); .then(resolve, reject);
}); });
} }