File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments