stages/prompt: Fix dropdown invalid choice (#5046)

This commit is contained in:
sdimovv 2023-03-22 22:25:13 +02:00 committed by GitHub
parent 9abd4b3e14
commit 6b42e404bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -149,8 +149,8 @@ export class PromptStage extends BaseStage<PromptChallenge, PromptChallengeRespo
${prompt.choices
?.map((choice) => {
return `<option
value=${choice}
${prompt.placeholder === choice ? "selected" : ""}
value="${choice}"
?selected=${prompt.placeholder === choice}
>
${choice}
</option>`;