@@ -14,13 +14,13 @@ function CommentSection({ imgId }) {
1414 // Debug auth status
1515 useEffect ( ( ) => {
1616 if ( user ) {
17- console . info ( "Auth status:" , {
17+ console . warn ( "Auth status:" , {
1818 userId : user . id ,
1919 hasToken : ! ! user . token ,
2020 email : user . email
2121 } ) ;
2222 } else {
23- console . info ( "User not logged in" ) ;
23+ console . error ( "User not logged in" ) ;
2424 }
2525 } , [ user ] ) ;
2626
@@ -88,7 +88,7 @@ function CommentSection({ imgId }) {
8888 }
8989
9090 const addedComment = await response . json ( ) ;
91- console . info ( "Comment added successfully:" , addedComment ) ;
91+ console . warn ( "Comment added successfully:" , addedComment ) ;
9292
9393 // Clear input and reload comments
9494 setNewComment ( "" ) ;
@@ -124,7 +124,7 @@ function CommentSection({ imgId }) {
124124 return ;
125125 }
126126
127- console . info ( "Loading comments for pinId:" , pinIdValue ) ;
127+ console . warn ( "Loading comments for pinId:" , pinIdValue ) ;
128128
129129 const response = await fetch (
130130 `http://localhost:4000/api/comments?pinId=${ pinIdValue } `
@@ -173,7 +173,7 @@ function CommentSection({ imgId }) {
173173
174174 // Update the state directly for better UX instead of reloading all comments
175175 setComments ( comments . filter ( comment => comment . id !== commentId ) ) ;
176- console . info ( `Comment with ID ${ commentId } deleted successfully.` ) ;
176+ console . warn ( `Comment with ID ${ commentId } deleted successfully.` ) ;
177177 } catch ( err ) {
178178 console . error ( "Error deleting comment:" , err ) ;
179179 setError ( "Failed to delete comment. Please try again." ) ;
0 commit comments