NIAEFEUP / nijobs-fe

[FRONTEND] A platform for companies to advertise their job opportunities to students
GNU General Public License v3.0
23 stars 3 forks source link

Fix undefined when accessing just rejected offer #332

Open Minipoloalex opened 7 months ago

Minipoloalex commented 7 months ago

When we have just rejected an offer and open its information, we see undefined on the rejectedAt date and an empty rejectReason (the variable is also undefined). After refreshing, this issue does not appear.

If we check the objects that are being accessed to show that information, we can see that the object used just after rejecting the offer differs from the object when the page is reloaded in those fields.

Just after rejecting without reloading (undefined problem) After reloading the page (no problem)
image image