Skip to content

Commit

Permalink
fix: first top failed
Browse files Browse the repository at this point in the history
  • Loading branch information
OXeu committed Jul 10, 2024
1 parent f64d86a commit 63902cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/page/feed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function FeedPage({ id, TOC, clean }: { id: string, TOC: () => JSX.Elemen
}
function topFeed() {
const isUnTop = !(top > 0)
const topNew = top === 0 ? 1 : 0;
const topNew = isUnTop ? 1 : 0;
// Confirm
showConfirm(
isUnTop ? t("article.top.title") : t("article.untop.title"),
Expand Down

0 comments on commit 63902cd

Please sign in to comment.