diff --git a/skeleton-smart-invite.js b/skeleton-smart-invite.js index cedbcc6..e27cd35 100644 --- a/skeleton-smart-invite.js +++ b/skeleton-smart-invite.js @@ -188,6 +188,16 @@ class SkeletonSmartInvite extends PolymerElement { }; } + /** + * Connected callback + */ + connectedCallback() { + super.connectedCallback(); + firebase.auth().onAuthStateChanged((user) => { + this.user = user; + }); + } + /** * Validation icon * @@ -284,9 +294,7 @@ class SkeletonSmartInvite extends PolymerElement { let finalData = data; if (this.info) { - console.log(this.info); finalData = Object.assign(data, this.info); - console.log(finalData); } if (this._validateEmail(this.value)) {