Implemented adress deletion (through reset)

ref #105
This commit is contained in:
2021-01-16 20:19:09 +01:00
parent 9dc9ce37d8
commit 57b9c2babc
4 changed files with 14 additions and 3 deletions

View File

@@ -36,7 +36,8 @@ export class UpdateRunner extends CreateParticipant {
runner.phone = this.phone;
runner.email = this.email;
runner.group = await this.getGroup();
runner.address = this.address;
if (!this.address) { runner.address.reset(); }
else { runner.address = this.address; }
Address.validate(runner.address);
return runner;