Skip to content

Commit 315635c

Browse files
committed
silly
1 parent 32e3f8c commit 315635c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/web/app/(org)/dashboard/_components/Notifications/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ const Notifications = forwardRef<HTMLDivElement, NotificationsProps>(
7777
return (
7878
<motion.div
7979
ref={ref}
80-
initial={{ opacity: 0, y: 4, scale: 0.98, display: "hidden" }}
80+
initial={{ opacity: 0, y: 4, scale: 0.98, display: "none" }}
8181
animate={{ opacity: 1, y: 0, scale: 1, display: "flex" }}
82-
exit={{ opacity: 0, y: 4, scale: 0.98, display: "hidden" }}
82+
exit={{ opacity: 0, y: 4, scale: 0.98, display: "none" }}
8383
transition={{ ease: "easeOut", duration: 0.2 }}
8484
onClick={(e) => e.stopPropagation()}
8585
className={clsx(

apps/web/app/s/[videoId]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ async function AuthorizedContent({
610610
toplLevelCommentId = parentComment?.parentCommentId;
611611
}
612612

613-
const commentToHighlight = toplLevelCommentId ?? commentId;
613+
const commentToBringToTheTop = toplLevelCommentId ?? commentId;
614614

615615

616616
const allComments = await db()
@@ -630,8 +630,8 @@ async function AuthorizedContent({
630630
.leftJoin(users, eq(comments.authorId, users.id))
631631
.where(eq(comments.videoId, videoId))
632632
.orderBy(
633-
commentToHighlight
634-
? sql`CASE WHEN ${comments.id} = ${commentToHighlight} THEN 0 ELSE 1 END, ${comments.createdAt}`
633+
commentToBringToTheTop
634+
? sql`CASE WHEN ${comments.id} = ${commentToBringToTheTop} THEN 0 ELSE 1 END, ${comments.createdAt}`
635635
: comments.createdAt
636636
);
637637

0 commit comments

Comments
 (0)