Duplicate empty contacts are created when adding fields to a contact
Affected version
- GNOME Contacts version: 2dcecb78
- Application provider: built from git
- Related info: Running Pine64-Arch (kernel: 5.16.10-1-danctnix) on a PinePhone with Phosh. Evolution-data-server: 3.42.4-2.1
Steps to reproduce
- Create a new contact, only giving them a name.
- Edit the contact, giving them an email and phone number.
- When you click "Done", the contact won't have an email nor phone number.
- Going back to the contact list, there'll be two contacts with the same name; one has no extra fields, and the other has an email and phone number.
Current behavior
Extra contacts with the same name are created, with one having no other fields.
Expected behavior
No extra contacts should be created.