diff --git a/src/app/[category]/[slug]/page.tsx b/src/app/[category]/[slug]/page.tsx
index 927607e..ab57a65 100644
--- a/src/app/[category]/[slug]/page.tsx
+++ b/src/app/[category]/[slug]/page.tsx
@@ -116,7 +116,7 @@ export default async function Page({
- {JSON.stringify(data, null, 8)}
+ {JSON.stringify(data, null, 2)}
)
diff --git a/src/app/[category]/page.tsx b/src/app/[category]/page.tsx
index 737b9ba..fc51e7a 100644
--- a/src/app/[category]/page.tsx
+++ b/src/app/[category]/page.tsx
@@ -82,7 +82,7 @@ export default async function Page({
- {JSON.stringify(data, null, 8)}
+ {JSON.stringify(data, null, 2)}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index dbdf22f..7525daa 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -28,7 +28,7 @@ export default async function Home() {
- {JSON.stringify(data, null, 8)}
+ {JSON.stringify(data, null, 4)}
diff --git a/src/components/RequestDisplayElement.tsx b/src/components/RequestDisplayElement.tsx
index 73823be..8db9ef4 100644
--- a/src/components/RequestDisplayElement.tsx
+++ b/src/components/RequestDisplayElement.tsx
@@ -37,7 +37,7 @@ export default RequestDisplayElement
function getRequest(slug: string) {
return `fetch("https://swapi.info/api${slug}")
- .then((res) => res.json()) // Parse the JSON content from the API to be consumed
- .then((json) => console.log(json)) // Log the JSON response to your console
- .catch((error) => console.error(error)) // Log the API error (if any) to your console`
+ .then((res) => res.json()) // Parse the JSON content from the API to be consumed
+ .then((json) => console.log(json)) // Log the JSON response to your console
+ .catch((error) => console.error(error)) // Log the API error (if any) to your console`
}