Update page.tsx

fixed
This commit is contained in:
Legend
2024-05-17 22:53:09 -06:00
committed by GitHub
parent ac19ea5838
commit dc4fa3f435
+1 -1
View File
@@ -18,7 +18,7 @@ export default function Home() {
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
const randomIndex = Math.floor(Math.random() * data.length); const randomIndex = Math.floor(Math.random() * data.length);
setSplashText(data[randomIndex].sp); setSplashText(data[randomIndex].splash);
}) })
.catch(error => console.error('Error fetching splash text:', error)); .catch(error => console.error('Error fetching splash text:', error));