Skip to content

Commit

Permalink
Fix always showing custom badge
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Dec 3, 2024
1 parent 7bc836d commit e2b2753
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ fun NostrUserText(
"verifiedBadge" to InlineTextContent(
placeholder = Placeholder(placeholderSize, placeholderSize, internetIdentifierBadgeAlign),
) {
if (internetIdentifier.isPrimalIdentifier() && customBadgeStyle != null &&
customBadgeStyle != LegendaryStyle.NO_CUSTOMIZATION
) {
if (customBadgeStyle != null && customBadgeStyle != LegendaryStyle.NO_CUSTOMIZATION) {
@Suppress("KotlinConstantConditions")
val badgeVector = when (customBadgeStyle) {
LegendaryStyle.GOLD -> PrimalIcons.PrimalBadgeGold
Expand Down

0 comments on commit e2b2753

Please sign in to comment.