diff --git a/src/components/r4-app.js b/src/components/r4-app.js index 1e5c471b..0564c593 100644 --- a/src/components/r4-app.js +++ b/src/components/r4-app.js @@ -103,11 +103,11 @@ export default class R4App extends LitElement { super.connectedCallback() this.listeners = new DatabaseListeners(this) - this.listeners.addEventListener('auth', async (event) => { - this.user = event.detail.user + this.listeners.addEventListener('auth', async ({detail}) => { + this.user = detail.user this.refreshUserData() this.refreshUserAccount() - if (event.detail === 'PASSWORD_RECOVERY') { + if (detail === 'PASSWORD_RECOVERY') { this.passwordRecovery() } }) @@ -146,7 +146,9 @@ export default class R4App extends LitElement { async refreshUserData() { // Ensure it doesn't run multiple times in parallel. - if (this.refreshUserData.running) return + if (this.refreshUserData.running) { + return + } this.refreshUserData.running = true if (!this.user) { diff --git a/src/index.css b/src/index.css index 005e1b78..a4ad2186 100644 --- a/src/index.css +++ b/src/index.css @@ -53,7 +53,7 @@ r4-app * { r4-app ul, r4-app ol { margin: 0; - padding: var(--s); + padding: 0 0 0 var(--s); } r4-app menu { margin: 0;