From 5000c5b061ba444c93b811c4d34cfbacab010a9e Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 4 Nov 2021 13:50:26 +0100 Subject: [PATCH] web/user: fix ak-user-settings-password getting wrong configureUrl closes #1733 Signed-off-by: Jens Langhammer --- web/src/user/user-settings/UserSettingsPage.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/web/src/user/user-settings/UserSettingsPage.ts b/web/src/user/user-settings/UserSettingsPage.ts index 6012c1ff9..3b9ba7b35 100644 --- a/web/src/user/user-settings/UserSettingsPage.ts +++ b/web/src/user/user-settings/UserSettingsPage.ts @@ -90,14 +90,13 @@ export class UserSettingsPage extends LitElement {
${until( this.userSettings?.then((settings) => { - if ( - settings.filter( - (stage) => - stage.component === "ak-user-settings-password", - ).length > 0 - ) { + const pwStage = settings.filter( + (stage) => + stage.component === "ak-user-settings-password", + ); + if (pwStage.length > 0) { return html``; } }),