ita-directory
ita-directory copied to clipboard
Fix user menu links ads and my-ads
can you provide details?
Yes, there is no differenciation between the /ads and the /my-ads pages. One should bring all, and the other one just user ads.
Moreover, my-ads (user-ads) should have an edit button instead of an contact button.
After fixing the my-ads path, there are no ads displayed in 'Mis Anuncions'. Instead, an error appears. To reproduce this issue you need first to modify the paths.js file.
Steps to reproduce:
- Open paths.js and replace line 9 with: userAds: '/user-ads',
- Save the change.
- Go to http://localhost:3000/login
- Introduce the mail [email protected]
- Introduce the password Test2@test
- Click Acceder
- Go to Mi Perfil
- Go to Mis Anuncios
Expected result:
- Show list of ads.
Actual result:
- Error message: “Ha habido un error con tu petición”.
Status Code: 500 Internal Server Error