diff options
Diffstat (limited to 'src/components/editors/client-editor.js')
-rw-r--r-- | src/components/editors/client-editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |