dguglielmi-git / innovandoliving

InnovandoLiving - NextJS Ecommerce - Official Website
2 stars 0 forks source link

Error when trying to get an order without messages #58

Closed dguglielmi-git closed 7 months ago

dguglielmi-git commented 7 months ago

When trying to see the details of an order, we receive the following error for the orders that don't have messages:

Image

Also, the error is causing the crash since the Component in charge of render that area is not managing very well the response when an error response is received from the backend:

Image

Component to analyze: CommentBody API involved: /order/messages (orderMessage.js)

Steps to reproduce:

  1. On the main page, go to My Orders
  2. Click on the See details button in the list of orders.
  3. The error message should appear when trying to open the details page.