Fixed incorrect usage of github api in example

more: https://developer.github.com/v3/gists/#detailed-gist-representation
This commit is contained in:
Rajiv Tirumalareddy
2014-05-08 11:47:25 -07:00
committed by Paul O’Shannessy
parent ba717cfc62
commit 59c495511a
+1 -1
View File
@@ -26,7 +26,7 @@ var UserGist = React.createClass({
$.get(this.props.source, function(result) {
var lastGist = result[0];
this.setState({
username: lastGist.user.login,
username: lastGist.owner.login,
lastGistUrl: lastGist.html_url
});
}.bind(this));