[frontend/components] Don't display pronouns field if user pronouns are present but empty

This commit is contained in:
pancakes 2025-03-29 21:45:48 +10:00
parent b79de70345
commit 752dccd21e
No known key found for this signature in database

View file

@ -71,7 +71,7 @@
<span class="field-value">@UserProfile.Location</span> <span class="field-value">@UserProfile.Location</span>
</div> </div>
} }
@if (UserProfile.Pronouns != null) @if (UserProfile.Pronouns != null && UserProfile.Pronouns.Count != 0)
{ {
<div class="pronouns field"> <div class="pronouns field">
<span class="field-name"> <span class="field-name">