Spaces:
Sleeping
Sleeping
Sasha commited on
Commit ·
ae9e59e
1
Parent(s): ba4f372
fix: resolve infinite recursion in safeFetch
Browse files- client/src/App.jsx +1 -1
client/src/App.jsx
CHANGED
|
@@ -98,7 +98,7 @@ export default function App() {
|
|
| 98 |
const rateLimitTimerRef = useRef(null);
|
| 99 |
|
| 100 |
const safeFetch = async (url, options = {}) => {
|
| 101 |
-
const res = await
|
| 102 |
if (res.status === 429) {
|
| 103 |
try {
|
| 104 |
const data = await res.json();
|
|
|
|
| 98 |
const rateLimitTimerRef = useRef(null);
|
| 99 |
|
| 100 |
const safeFetch = async (url, options = {}) => {
|
| 101 |
+
const res = await fetch(url, options);
|
| 102 |
if (res.status === 429) {
|
| 103 |
try {
|
| 104 |
const data = await res.json();
|