Skip to content

Commit

Permalink
Merge pull request #124 from Konsumentverket/add-env-file
Browse files Browse the repository at this point in the history
add env file
  • Loading branch information
stavrosgemis authored Apr 5, 2022
2 parents a17d4d0 + dca475f commit 9c7f65f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SelectTeam/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ export const App = ({ sdk }) => {
});

useEffect(() => {
const client = createClient({
accessToken: 'N0uF-FQd3dILAQFDJ0-Ai5bNAuYxgIq9fAEw1Pu0sFs',
const client = process.env.REACT_APP_NOT_SECRET_CODE,
});

client
.getSpace('yhw377pukdz9')
.getSpace(process.env.REACT_APP_SPACE)
.then((space) => space.getTeams())
.then((teamsCollection) => setTeams(teamsCollection.items))
.catch(console.error);
Expand Down

0 comments on commit 9c7f65f

Please sign in to comment.