Skip to content

Commit 678bdc7

Browse files
done done XD
1 parent 4a06668 commit 678bdc7

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/app/upload/page.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default function Page() {
182182
});
183183

184184
formData.append("campus", campus);
185-
console.log("campus", campus);
185+
//console.log("campus", campus);
186186
formData.append("isPdf", String(isPdf));
187187

188188
setIsUploading(true);
@@ -191,9 +191,9 @@ export default function Page() {
191191
await toast.promise(
192192
async () => {
193193
try {
194-
console.log("this is happening now");
194+
//console.log("this is happening now");
195195
await axios.post<APIResponse>("/api/upload", formData);
196-
console.log("this is happening after now");
196+
//console.log("this is happening after now");
197197
return { message: "Papers uploaded successfully!" };
198198
} catch (error) {
199199
if (error instanceof AxiosError && error.response?.data) {
@@ -215,10 +215,9 @@ export default function Page() {
215215
);
216216

217217
setFiles([]);
218-
// setResetSearch(true);
219-
// setTimeout(() => setResetSearch(false), 100);
218+
220219
} catch (error) {
221-
// handleAPIError(error);
220+
222221
} finally {
223222
setIsUploading(false);
224223
}

0 commit comments

Comments
 (0)