Skip to content
This repository was archived by the owner on Dec 27, 2019. It is now read-only.

Commit 1e7c319

Browse files
author
Kent C. Dodds
committed
some final cleanup.
1 parent ce7a771 commit 1e7c319

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
REACT_APP_NETLIFY_SITE_ID=2b9c1652-1f15-4c58-89f2-290796d9fc68

src/github-client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const GitHubClientContext = React.createContext()
99
async function authWithGitHub() {
1010
return new Promise((resolve, reject) => {
1111
var authenticator = new netlify({
12-
site_id: '2b9c1652-1f15-4c58-89f2-290796d9fc68',
12+
site_id: process.env.REACT_APP_NETLIFY_SITE_ID,
1313
})
1414
authenticator.authenticate(
1515
{provider: 'github', scope: 'public_repo,read:org,read:user'},
@@ -73,7 +73,7 @@ class GitHubClientProvider extends React.Component {
7373
>
7474
{error ? (
7575
<div>
76-
<p>Oh no! There was an error!</p>
76+
<p>Oh no! There was an error.</p>
7777
<pre>{JSON.stringify(error, null, 2)}</pre>
7878
</div>
7979
) : (

0 commit comments

Comments
 (0)