Skip to content

Commit

Permalink
Fix leave document upload types
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Jun 28, 2024
1 parent 25265cb commit 33cdb6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/backend_requests/PostLeave.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const postLeaveToServer = async (
},
body: JSON.stringify(json_to_send),
});
console.log(response);
if (response.ok) {
const response_json = await response.json();
onDisplayNotification(response_json.msg);
Expand Down
4 changes: 2 additions & 2 deletions src/screens/ApplyLeave/components/DocumentUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function DocumentAdd({
DocumentPicker.types.docx, // docx
DocumentPicker.types.doc, // doc
DocumentPicker.types.xls, // xls
"application/vnd.oasis.opendocument.text", // odt
"application/vnd.oasis.opendocument.spreadsheet", // ods
// "application/vnd.oasis.opendocument.text", // odt
// "application/vnd.oasis.opendocument.spreadsheet", // ods
"image/bmp", // bmp
"image/png", // png
"image/jpeg", // jpg, jpeg
Expand Down

0 comments on commit 33cdb6c

Please sign in to comment.