fix: scopes missing singular case

This commit is contained in:
tglide committed 2023-02-09 18:56:41 +00:00
1 parent 2a87d3fa5c
commit 3e06e21116
1 file changed
+5 -2
@@ -96,8 +96,11 @@
{category}
</svelte:fragment>
<svelte:fragment slot="subtitle">
({allScopes.filter((n) => n.category === category && scopes.includes(n.scope))
.length} Scopes)
{@const scopesLength = allScopes.filter(
(n) => n.category === category && scopes.includes(n.scope)
).length}
({scopesLength}
{scopesLength === 1 ? 'Scope' : 'Scopes'})
</svelte:fragment>
<div class="form">
<FormList>