providers/oauth2: fix scopes without descriptions not being saved in consent

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-08-07 13:02:47 +02:00
parent dcbf106daa
commit e1249d3760
2 changed files with 1 additions and 3 deletions

View File

@ -70,7 +70,7 @@ export class ConsentStage extends BaseStage<ConsentChallenge, ConsentChallengeRe
<ul class="pf-c-list" id="permmissions">
${this.challenge.permissions.map((permission) => {
return html`<li data-permission-code="${permission.id}">
${permission.name}
${permission.name === "" ? permission.id : permission.name}
</li>`;
})}
</ul>