Skip to content

Commit eee9658

Browse files
committed
fix: change condition
1 parent da7dd7d commit eee9658

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/post/SideAd.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ const AdBlock = styled.div<{ width: number; height: number }>`
2222
// background: #e0e0e0;
2323
// border-radius: 4px;
2424
display: flex;
25-
align-items: center;
26-
justify-content: center;
2725
// color: #666;
2826
// font-size: 14px;
2927
`;

src/containers/post/PostViewer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const PostViewer: React.FC<PostViewerProps> = ({
173173
const postReady = !!data?.post;
174174

175175
const shouldShowAds = useMemo(() => {
176-
// 14일 이상된 게시글에선 비로그인 사용자에게 광고가 노출됩니다.
176+
// 10일 이상된 게시글에선 비로그인 사용자에게 사이드바 광고가 노출됩니다.
177177
if (!data?.post) {
178178
return false;
179179
}
@@ -184,7 +184,7 @@ const PostViewer: React.FC<PostViewerProps> = ({
184184

185185
const isOldEnough =
186186
Date.now() - new Date(data?.post?.released_at).getTime() >
187-
1000 * 60 * 60 * 24 * 14;
187+
1000 * 60 * 60 * 24 * 10;
188188

189189
if (!isOldEnough) {
190190
return false;

0 commit comments

Comments
 (0)