Clearer condition

This commit is contained in:
Dan Abramov
2025-01-22 00:40:15 +00:00
parent 85993797d0
commit d82cc0653e
+7 -7
View File
@@ -648,18 +648,18 @@ let PostFeed = ({
</View> </View>
) )
} else if (row.type === 'videoGridRow') { } else if (row.type === 'videoGridRow') {
let sourceContext: VideoFeedSourceContext = { let sourceContext: VideoFeedSourceContext
type: 'feedgen',
uri: row.sourceFeedUri,
sourceInterstitial: feedCacheKey ?? 'none',
}
if (feedType === 'author') { if (feedType === 'author') {
sourceContext = { sourceContext = {
type: 'author', type: 'author',
did: feedUriOrActorDid, did: feedUriOrActorDid,
filter: feedTab as AuthorFilter, filter: feedTab as AuthorFilter,
sourceInterstitial: 'none', }
} else {
sourceContext = {
type: 'feedgen',
uri: row.sourceFeedUri,
sourceInterstitial: feedCacheKey ?? 'none',
} }
} }