Added address validity check

ref #105
This commit is contained in:
niggl committed 2021-01-16 18:28:19 +01:00
1 parent 2a465f88c5
commit ae7c5ff0c3
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ export class CreateDonor extends CreateParticipant {
newDonor.receiptNeeded = this.receiptNeeded;
newDonor.address = this.address;
if (this.receiptNeeded == true && this.address == null) {
if (this.receiptNeeded == true && this.address.isValidAddress == false) {
throw new DonorReceiptAddressNeededError()
}