Reverse gate check, best practice

This commit is contained in:
Eric Bailey
2025-12-17 14:27:37 -06:00
parent 42e9b41d3b
commit 0b165024b7
+1 -1
View File
@@ -436,7 +436,7 @@ export function ProfileGrid({
const isLoading = isSuggestionsLoading || !moderationOpts const isLoading = isSuggestionsLoading || !moderationOpts
const isProfileHeaderContext = viewContext === 'profileHeader' const isProfileHeaderContext = viewContext === 'profileHeader'
const isFeedContext = viewContext === 'feed' const isFeedContext = viewContext === 'feed'
const showDismissButton = gate('suggested_users_dismiss') && onDismiss const showDismissButton = onDismiss && gate('suggested_users_dismiss')
const maxLength = gtMobile ? 3 : isProfileHeaderContext ? 12 : 6 const maxLength = gtMobile ? 3 : isProfileHeaderContext ? 12 : 6
const minLength = gtMobile ? 3 : 4 const minLength = gtMobile ? 3 : 4