aboutsummaryrefslogtreecommitdiff
path: root/src/components/editors
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/editors')
-rw-r--r--src/components/editors/address-editor.js1
-rw-r--r--src/components/editors/client-editor.js2
-rw-r--r--src/components/editors/contact-editor.js2
3 files changed, 1 insertions, 4 deletions
diff --git a/src/components/editors/address-editor.js b/src/components/editors/address-editor.js
index 3675f26..bd81b6f 100644
--- a/src/components/editors/address-editor.js
+++ b/src/components/editors/address-editor.js
@@ -18,7 +18,6 @@
import { Address } from './../../classes/client';
import './scss/address-editor.scss';
-import { useState, useEffect } from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faXmark } from '@fortawesome/free-solid-svg-icons';
diff --git a/src/components/editors/client-editor.js b/src/components/editors/client-editor.js
index f4535c2..bd018f4 100644
--- a/src/components/editors/client-editor.js
+++ b/src/components/editors/client-editor.js
@@ -66,7 +66,7 @@ const ClientEditor = (props) => {
setGSTIN("")
setContact(new Contact());
setBillingAddress(new Address());
- setShippingAddresses([new Address()]);
+ setShippingAddresses([]);
setShipToBillingAddress(true);
}
diff --git a/src/components/editors/contact-editor.js b/src/components/editors/contact-editor.js
index 3c9a1f9..f689b8c 100644
--- a/src/components/editors/contact-editor.js
+++ b/src/components/editors/contact-editor.js
@@ -18,8 +18,6 @@
import { Contact } from './../../classes/client';
import './scss/contact-editor.scss';
-import { useState, useEffect } from 'react';
-
const ContactEditor = (props) => {
const handleInput = (field, event) => {
const c = new Contact();