Closed abid-salahi closed 4 years ago
There is a weird bug where the user updates their postal code then uses the navBar to go to the posting results page. The location data on the posting previews do not reflect the most recent changes made. My theory is that since it refreshes the page, it goes through the token authentication and resets the currentUser in redux but doesn't have the updated information. If the user goes back their profile and edits again, the form shows the updated information but all the distance calculations are incorrect. It is fixed when the user logs out then back in again.
I have no clue how to fix this....
Location should appear fine on all the previews on search except when on the user profile page. Could not figure out how to load them on there for some reason, the userDetail isnt fully updated before render occurs and owner id of postings end up null or something. Hopefully someone else might figure it out, otherwise they're just left blank and shouldnt really be a big deal given the postings belong to the same user since its on their profile, so seeing their own location or that the posting is 0 km away from them isnt really worth seeing. For any changes, feel free to checkout the branch and make them directly.