Skip to content

Commit fd50bac

Browse files
authored
fix: pass parameters to retried request (freeCodeCamp-2025-Summer-Hackathon#169)
1 parent 9ff9331 commit fd50bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/hooks/useApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const useApi = ({ method = 'GET', loadingInitially = false }) => {
7777
responseJson.detail.includes('Missing Cookie')
7878
) {
7979
await getCrsfToken({ forceNew: true });
80-
return await sendRequest();
80+
return await sendRequest(path, extraFetchOptions);
8181
}
8282
setData(responseJson);
8383
} catch (e) {

0 commit comments

Comments
 (0)