File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ const AdminBonds = () => {
12
12
useEffect ( ( ) => {
13
13
const fetchAdminBonds = async ( ) => {
14
14
const userId = localStorage . getItem ( 'userId' ) ; // Obtener el userId desde localStorage
15
- console . log ( 'User ID QUE SE MANDA' , userId ) ;
16
15
17
16
if ( ! userId ) {
18
17
alert ( 'You need to log in as an admin to view bonds.' ) ;
@@ -21,6 +20,7 @@ const AdminBonds = () => {
21
20
22
21
setLoading ( true ) ;
23
22
try {
23
+ console . log ( 'User ID QUE SE MANDA' , userId ) ;
24
24
const response = await axios . get ( `${ BACKEND_URL } /admin/bonds` , {
25
25
params : { userId } , // Enviar el userId como query parameter
26
26
} ) ;
@@ -32,7 +32,7 @@ const AdminBonds = () => {
32
32
setLoading ( false ) ;
33
33
}
34
34
} ;
35
-
35
+ console . log ( 'User ID QUE SE MANDA' , userId ) ;
36
36
fetchAdminBonds ( ) ;
37
37
} , [ ] ) ;
38
38
You can’t perform that action at this time.
0 commit comments