Skip to content

Commit

Permalink
Issue #PS-0000 fix: Fixed build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Sep 27, 2024
1 parent 26b8fef commit 6e61355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Profile = () => {
useEffect(() => {
const fetchData = async () => {
try {
const response = await fetch("/posts/1");
const response = await fetch("https://jsonplaceholder.typicode.com/posts/1");
console.log(response, "response");
if (!response.ok) {
throw new Error("Failed to fetch data");
Expand Down Expand Up @@ -38,7 +38,7 @@ const Profile = () => {

return (
<div>
<h1>Fake API Data (React)</h1>
<h1>Profile API Data (React)</h1>
<p><strong>Title:</strong> {postData.title}</p>
<p><strong>Body:</strong> {postData.body}</p>
</div>
Expand Down

0 comments on commit 6e61355

Please sign in to comment.