improvement: handle singular

This commit is contained in:
Scott Wilson
2025-06-03 15:38:39 -07:00
parent 4268fdea44
commit 80d2d9d2cf

View File

@@ -369,7 +369,8 @@ export const ShareSecretForm = ({
helperText={
maxSharedSecretViewLimit ? (
<span className="text-yellow-500">
Limited to {maxSharedSecretViewLimit} views by organization
Limited to {maxSharedSecretViewLimit} view
{maxSharedSecretViewLimit === 1 ? "" : "s"} by organization
</span>
) : undefined
}