Move gate check to last

This commit is contained in:
Eric Bailey
2025-12-04 17:13:38 -06:00
parent d94289015d
commit 1793c3fa4e
+3 -3
View File
@@ -509,10 +509,10 @@ let PostFeed = ({
} }
// Show composer prompt for Discover and Following feeds // Show composer prompt for Discover and Following feeds
if ( if (
gate('show_composer_prompt') &&
hasSession && hasSession &&
(feedUriOrActorDid === DISCOVER_FEED_URI || (feedUriOrActorDid === DISCOVER_FEED_URI ||
feed === 'following') feed === 'following') &&
gate('show_composer_prompt')
) { ) {
arr.push({ arr.push({
type: 'composerPrompt', type: 'composerPrompt',
@@ -535,7 +535,7 @@ let PostFeed = ({
} else if (feedKind === 'following') { } else if (feedKind === 'following') {
if (sliceIndex === 0) { if (sliceIndex === 0) {
// Show composer prompt for Following feed // Show composer prompt for Following feed
if (gate('show_composer_prompt') && hasSession) { if (hasSession && gate('show_composer_prompt')) {
arr.push({ arr.push({
type: 'composerPrompt', type: 'composerPrompt',
key: 'composerPrompt-' + sliceIndex, key: 'composerPrompt-' + sliceIndex,