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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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));