ita-directory icon indicating copy to clipboard operation
ita-directory copied to clipboard

Fix user menu links ads and my-ads

Open kevinmamaqi opened this issue 2 years ago • 3 comments

kevinmamaqi avatar Nov 23 '22 08:11 kevinmamaqi

can you provide details?

rabbanirizwan avatar Nov 24 '22 15:11 rabbanirizwan

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.

kevinmamaqi avatar Nov 24 '22 15:11 kevinmamaqi

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:

  1. Open paths.js and replace line 9 with: userAds: '/user-ads',
  2. Save the change.
  3. Go to http://localhost:3000/login
  4. Introduce the mail [email protected]
  5. Introduce the password Test2@test
  6. Click Acceder
  7. Go to Mi Perfil
  8. 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

Bazza6 avatar Feb 27 '23 10:02 Bazza6