planet-webapp
planet-webapp copied to clipboard
Remove the unnecessary API from the address management
Since we are updating the address in the user profile after the user's action (add, edit, delete), we do not need the additional API call to fetch the user addresses. Therefore, remove the updateUserAddresses helper function and any related API endpoint logic.
Currently only Add/Edit are updating user.addresses, the logic needs to be updated for all actions including
DELETE, SET_PRIMARY, SET_BILLING, UNSET_BILLING
Has been addressed in this PR