Skip to content

Commit df7d501

Browse files
Adjusted code
1 parent 7f776f4 commit df7d501

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/pages/bceidform/ContactWizardStep.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ const features = instance.appContext.config.globalProperties.$features;
8080
const otherContacts = computed(() => formData.location.contacts.slice(1));
8181
const addContact = (autoFocus = true) => {
8282
const newContact = JSON.parse(JSON.stringify(emptyContact));
83-
if (!features.BCEID_MULTI_ADDRESS) {
84-
newContact.locationNames.push(defaultLocation);
83+
if (features.BCEID_MULTI_ADDRESS) {
84+
newContact.locationNames = [];
8585
}
8686
const newLength = formData.location.contacts.push(newContact);
8787

0 commit comments

Comments
 (0)