diff --git a/src/components/GithubStatistics.js b/src/components/GithubStatistics.js index b9d68ca..1c67ba8 100644 --- a/src/components/GithubStatistics.js +++ b/src/components/GithubStatistics.js @@ -41,7 +41,7 @@ class GithubStatistics extends React.Component { /* eslint-disable-next-line */ var t = btoa(GITHUB_API_TOKEN) /* eslint-disable-next-line */ - this.fetcher = new GithubFetcher(btoa(t)) + this.fetcher = new GithubFetcher(t) this.props.updateState("githubApiToken", t) this.search = _.debounce( diff --git a/src/reducers/github.js b/src/reducers/github.js index 4fdeb95..6a47434 100644 --- a/src/reducers/github.js +++ b/src/reducers/github.js @@ -11,8 +11,7 @@ const INITIAL_STATE = { releaseData: [], releaseStats: {}, - githubApiToken: 'Z2hwX29XQWdNS3gxeXNHRXBlTzV6OEdpdWZvNjc0WkhWZTN0bVlJVQ==', - + githubApiToken: btoa(process.env.REACT_APP_GITHUB_API_TOKEN), } const github = (state = INITIAL_STATE, action) => {