Fixed some stuff not getting checked against null

ref #39 gosh i sometimes hate js types
This commit is contained in:
2020-12-20 18:18:32 +01:00
parent fbe2b358bd
commit 7a4238f1f7
10 changed files with 15 additions and 19 deletions

View File

@@ -56,7 +56,7 @@ export class CreateGroupContact {
* Get's this participant's address from this.address.
*/
public async getAddress(): Promise<Address> {
if (this.address === undefined) {
if (this.address === undefined || this.address === null) {
return null;
}
if (!isNaN(this.address)) {