We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1aedf commit 3ea7178Copy full SHA for 3ea7178
app/(with-layout)/surfers/leaderboard/page.tsx
@@ -19,7 +19,7 @@ export default function Page() {
19
// Function to fetch leaderboard entries
20
const fetchLeaderboard = async () => {
21
try {
22
- const response = await fetch("http://localhost:3000/api/scores");
+ const response = await fetch("http://hackrpi.com/api/scores");
23
if (response.ok) {
24
const data: Result[] = await response.json(); // Ensure the data is typed as Result[]
25
setLeaderboardEntries(data); // Update state with the fetched leaderboard data
0 commit comments