Skip to content

Commit

Permalink
API key Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jnnkk committed Sep 3, 2024
1 parent 1301ec8 commit b8e7804
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/Checklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ function Checklist() {
const fetchUsers = async () => {
// API URL
const apiURL = '/api/site/program/financial/exchangeJSON?authkey=' + process.env.REACT_APP_JAPAN_API_KEY + '&searchdate=20240903&data=AP01'
if(process.env.REACT_APP_JAPAN_API_KEY) {
console.log("API key is set " + process.env.REACT_APP_JAPAN_API_KEY[0]);
}
try {
const response = await fetch(apiURL);
if (!response.ok) {
Expand Down

0 comments on commit b8e7804

Please sign in to comment.