From f7250095307be28b8e7489f6b4b807fabd487426 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 4 Sep 2021 13:06:37 +0200 Subject: [PATCH] web/flows: fix display error when using IdentificationStage without input fields Signed-off-by: Jens Langhammer --- web/src/flows/stages/identification/IdentificationStage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/flows/stages/identification/IdentificationStage.ts b/web/src/flows/stages/identification/IdentificationStage.ts index bd6382175..bf1db0632 100644 --- a/web/src/flows/stages/identification/IdentificationStage.ts +++ b/web/src/flows/stages/identification/IdentificationStage.ts @@ -176,7 +176,7 @@ export class IdentificationStage extends BaseStage< renderInput(): TemplateResult { let type = "text"; - if (!this.challenge?.userFields) { + if (!this.challenge?.userFields || this.challenge.userFields.length === 0) { return html`

${t`Select one of the sources below to login.`}

`; } const fields = (this.challenge?.userFields || []).sort();