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 f30f5a6 commit 9db17aaCopy full SHA for 9db17aa
1 file changed
components/leaderboard/LeaderBoard.tsx
@@ -21,7 +21,9 @@ export const LeaderBoard: React.FC = () => {
21
setIsError(false);
22
23
try {
24
- const response = await axios.get("/api/topUsers");
+ const response = await axios.get("/api/topUsers", {
25
+ timeout: 8000
26
+ });
27
setLeaderBoardData(response.data);
28
} catch (error) {
29
console.error("Failed to fetch leaderboard data:", error);
@@ -87,3 +89,4 @@ export const LeaderBoard: React.FC = () => {
87
89
};
88
90
91
92
+
0 commit comments