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>
)
} else if (row.type === 'videoGridRow') {
let sourceContext: VideoFeedSourceContext = {
type: 'feedgen',
uri: row.sourceFeedUri,
sourceInterstitial: feedCacheKey ?? 'none',
}
let sourceContext: VideoFeedSourceContext
if (feedType === 'author') {
sourceContext = {
type: 'author',
did: feedUriOrActorDid,
filter: feedTab as AuthorFilter,
sourceInterstitial: 'none',
}
} else {
sourceContext = {
type: 'feedgen',
uri: row.sourceFeedUri,
sourceInterstitial: feedCacheKey ?? 'none',
}
}