diff --git a/ecom-frontend/src/store/actions/index.js b/ecom-frontend/src/store/actions/index.js index 188f3bd..5fefc61 100644 --- a/ecom-frontend/src/store/actions/index.js +++ b/ecom-frontend/src/store/actions/index.js @@ -174,7 +174,7 @@ export const addUpdateUserAddress = } else { await api.put(`/addresses/${addressId}`, sendData); } - dispatch(getUserAddresses()); + await dispatch(getUserAddresses()); toast.success("Address saved successfully"); dispatch({ type:"IS_SUCCESS" }); } catch (error) {