Changed format
This commit is contained in:
parent
80248238d2
commit
2f511d1718
|
@ -5,8 +5,10 @@ export default class Controller extends Component {
|
|||
onSubmit() {
|
||||
const orgData = this.$.watcher.orgData;
|
||||
delete this.client.despiteOfClient;
|
||||
|
||||
const hasContactData = this.client.email || this.client.phone || this.client.mobile;
|
||||
if (!orgData.isTaxDataChecked && this.client.isTaxDataChecked && hasContactData)
|
||||
const isDataChecked = !orgData.isTaxDataChecked && this.client.isTaxDataChecked;
|
||||
if (isDataChecked && hasContactData)
|
||||
this.checkExistingClient();
|
||||
else this.save();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue