monkeytype-clone
monkeytype-clone copied to clipboard
the game is working but i am getting leaderboard error
Unhandled Runtime Error Error: An error occurred while fetching the data.
Source src/hooks/useLeaderboard.ts (39:12) @ _callee$
37 | }); 38 | if (!res.ok) {
39 | throw new Error('An error occurred while fetching the data.'); | ^ 40 | } 41 | return res.json(); 42 | }; Call Stack tryCatch node_modules/next/dist/compiled/regenerator-runtime/runtime.js (45:15) Generator.invoke [as _invoke] node_modules/next/dist/compiled/regenerator-runtime/runtime.js (274:0) prototype.
[as next] node_modules/next/dist/compiled/regenerator-runtime/runtime.js (97:0) asyncGeneratorStep node_modules/@swc/helpers/src/_async_to_generator.mjs (3:0) _next node_modules/@swc/helpers/src/_async_to_generator.mjs (25:0)