From ec19430f9a4ffce276905e074972eff0e8732c58 Mon Sep 17 00:00:00 2001 From: Rajiv Tirumalareddy Date: Tue, 6 May 2014 16:42:07 -0700 Subject: [PATCH] Fixed incorrect usage of github api in example more: https://developer.github.com/v3/gists/#detailed-gist-representation --- tips/12-initial-ajax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tips/12-initial-ajax.md b/tips/12-initial-ajax.md index 5a761438..22088648 100644 --- a/tips/12-initial-ajax.md +++ b/tips/12-initial-ajax.md @@ -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));