From 097a393b2bf170d69ba1cef16c5e70f204e2fe65 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 13 Oct 2022 14:28:29 +0530 Subject: added an invoice summary component --- src/components/editors/client-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/editors/client-editor.js') diff --git a/src/components/editors/client-editor.js b/src/components/editors/client-editor.js index e07c749..9a752c7 100644 --- a/src/components/editors/client-editor.js +++ b/src/components/editors/client-editor.js @@ -38,7 +38,7 @@ const ClientEditor = (props) => { // will delete existing shipping addresses if false useEffect(() => setShippingAddresses(shipToBillingAddress ? [] : (shippingAddresses.length > 0 ? shippingAddresses : [new Address()])) - , [shipToBillingAddress]); + , [shipToBillingAddress, shippingAddresses]); const handleSubmit = (e) => { e.preventDefault(); -- cgit v1.2.3