diff --git a/src/components/Github.js b/src/components/Github.js index 45719e4..188c4d3 100644 --- a/src/components/Github.js +++ b/src/components/Github.js @@ -8,18 +8,19 @@ import space from '../img/space.webp'; class Github extends React.Component { componentDidMount() { - this.props.getRepos(); - console.log(this.props.repos); + if (!this.props.repos) { + this.props.getRepos(); + console.log("A"); + } + } renderRepos() { if (this.props.repos) { const render = this.props.repos.map((repo) =>{ - console.log(repo); return ( - -
{repo.description ? repo.description : "No Description"}
@@ -33,7 +34,6 @@ class Github extends React.Component { ); }); - console.log(render); return