Skip to content

Commit

Permalink
Fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
koishichito committed Aug 29, 2024
1 parent 57b7c61 commit 641a525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint --dir src",
"format": "next lint --fix --dir src"
"format": "next lint --fix --dir src",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@emotion/cache": "^11.13.1",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Index: NextPage = () => {
fetch('https://jsonplaceholder.typicode.com/photos')
.then((response) => {
if (!response.ok) {
throw new Error('Network response was not ok')
return;
}
return response.json()
})
Expand Down

0 comments on commit 641a525

Please sign in to comment.