Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
radek00 committed Jul 30, 2023
1 parent 5739246 commit 87e6b25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SecureSend/ClientApp/src/utils/fetchWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ async function handleResponse<T>(response: Response): Promise<T> {
ErrorTypes.upload_does_not_exist
)
return Promise.reject(new UploadDoesNotExistError(data.Message));
} else {
return Promise.reject(new Error(response.statusText));
}
return Promise.reject(error);
return Promise.reject(new Error(response.statusText));
}

return data;
Expand Down

0 comments on commit 87e6b25

Please sign in to comment.