Fix error on account creation
Change-Id: Ie8fe7f0bb8e6a2f55a09196530eebac0a10746d3
diff --git a/model/Contact.ts b/model/Contact.ts
index 01d4a02..fd05f1a 100644
--- a/model/Contact.ts
+++ b/model/Contact.ts
@@ -1,13 +1,15 @@
class Contact {
private readonly uri: string;
- private displayName: string | undefined = undefined;
- private registeredName: string | undefined = undefined;
+ private readonly displayName: string | undefined;
+ private registeredName: string | undefined;
constructor(uri: string) {
this.uri = uri;
+ this.displayName = undefined;
+ this.registeredName = undefined;
}
- static from(object: Contact) {
+ static from(object: any) {
const contact = new Contact(object.uri);
if (object.registeredName) contact.setRegisteredName(object.registeredName);
return contact;