Move gate check to last
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user