Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 103e1ef

Browse files
committed
[ux,fix]: set proper score color;
1 parent d4b2c3b commit 103e1ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/reddit/RedditPostRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const RedditListing: React.FC<RedditListingProps> = ({ data }) => {
125125
</Link>
126126
</Descriptions.Item>
127127
<Descriptions.Item label="Score">
128-
<Tag color={d.score > 1 ? 'geekblue' : 'volcano'}>{d.score}</Tag>
128+
<Tag color={d.score >= 1 ? 'geekblue' : 'volcano'}>{d.score}</Tag>
129129
</Descriptions.Item>
130130
<Descriptions.Item label="Created">
131131
{timeAgo(d.created_utc)}

0 commit comments

Comments
 (0)