improvement: handle singular

This commit is contained in:
Scott Wilson
2025-06-03 15:38:39 -07:00
parent 4268fdea44
commit 80d2d9d2cf
@@ -369,7 +369,8 @@ export const ShareSecretForm = ({
helperText={ helperText={
maxSharedSecretViewLimit ? ( maxSharedSecretViewLimit ? (
<span className="text-yellow-500"> <span className="text-yellow-500">
Limited to {maxSharedSecretViewLimit} views by organization Limited to {maxSharedSecretViewLimit} view
{maxSharedSecretViewLimit === 1 ? "" : "s"} by organization
</span> </span>
) : undefined ) : undefined
} }