Skip to content

Commit

Permalink
fix address on edit (#352)
Browse files Browse the repository at this point in the history
Co-authored-by: Claire Lovisa <[email protected]>
  • Loading branch information
nbittich and claire-lovisa authored May 24, 2022
1 parent 3e1469f commit eb8935e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/components/contact-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ export default class ContactDetailsComponent extends Component {
}
this.positions = this.reloadPositions();
if (!this.positions?.length) {
this.newContact();
if (this.selectedContact) {
this.fixErrorAndSelect(this.selectedContact);
} else {
this.newContact();
}
this.args.onUpdate(this.editingContact);

this.singlePosition = true;
} else {
this.singlePosition = false;
Expand Down

0 comments on commit eb8935e

Please sign in to comment.