Skip to content

Commit

Permalink
Minor nit
Browse files Browse the repository at this point in the history
  • Loading branch information
lrojas94 committed Nov 5, 2024
1 parent 3c6d40d commit 6abc59c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hooks/useS3Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ export const useS3Upload: UseS3Upload = (options = {}) => {

const completeUpload = () =>
withRetries(
() =>
fetch(completeEndpoint, {
async () => {
return fetch(completeEndpoint, {
method: 'POST',
headers,
body: JSON.stringify({
Expand All @@ -205,7 +205,8 @@ export const useS3Upload: UseS3Upload = (options = {}) => {
uploadId,
parts,
}),
}),
});
},
3,
50
);
Expand Down

0 comments on commit 6abc59c

Please sign in to comment.