Skip to content

Commit

Permalink
Исправлена ошибка, когда при отсутствии CSRF-токена делалось бесконеч…
Browse files Browse the repository at this point in the history
…ное количество запросов
  • Loading branch information
DeDxYk594 committed Nov 26, 2024
1 parent ea91f9d commit 6011303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/apiHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const fetchApi = async (
) {
// Повторить запрос, если сбился CSRF-токен
await fetchApi('/users/me', 'GET', undefined, true);
return await fetchApi(addr, method, requestBody);
return await fetchApi(addr, method, requestBody, true);
}
return {
status: response.status,
Expand Down

0 comments on commit 6011303

Please sign in to comment.