Skip to content

Commit 65e2303

Browse files
committed
fix: set isDisplay to strue
1 parent cf62fe8 commit 65e2303

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/containers/post/PostViewer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,9 @@ const PostViewer: React.FC<PostViewerProps> = ({
521521
/>
522522
}
523523
/>
524-
{shouldShowBanner ? <PostBanner customAd={customAd} /> : null}
524+
{shouldShowBanner ? (
525+
<PostBanner customAd={customAd} isDisplayAd={true} />
526+
) : null}
525527
<PostContent isMarkdown={post.is_markdown} body={post.body} />
526528
<UserProfileWrapper>
527529
<UserProfile
@@ -541,7 +543,7 @@ const PostViewer: React.FC<PostViewerProps> = ({
541543
</UserProfileWrapper>
542544
<LinkedPostList linkedPosts={post.linked_posts} />
543545
{shouldShowBanner && isContentLongEnough ? (
544-
<PostBanner customAd={customAd} />
546+
<PostBanner customAd={customAd} isDisplayAd={true} />
545547
) : null}
546548
{shouldShowFooterBanner ? (
547549
<PostBanner isDisplayAd={true} customAd={customAd} />

0 commit comments

Comments
 (0)