From 1bd980076d59a70a06abc31130f7ae961b0b536f Mon Sep 17 00:00:00 2001 From: Thomas Zillinger Date: Wed, 5 Nov 2025 15:59:38 +0100 Subject: [PATCH] Fix: Ensure user addresses are fetched after saving an address --- ecom-frontend/src/store/actions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {