Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Dec 29, 2024
1 parent 6569ad4 commit 71e0a72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions frontend/src/pages/notifications/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const NotificationHeader = ({
return (
<span>
<em>{notification.data.comment.user?.name}</em> commented on an{" "}
{editLink}{"you've commented on."}
{editLink}
{"you've commented on."}
</span>
);
if (notification.data.__typename === "CommentOwnEdit")
Expand All @@ -63,7 +64,8 @@ const NotificationHeader = ({
return (
<span>
<em>{notification.data.comment.user?.name}</em> commented on an{" "}
{editLink}{" you've voted on."}
{editLink}
{" you've voted on."}
</span>
);
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/sqlx/querybuilder_notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func buildQuery(userID uuid.UUID, filter models.QueryNotificationsInput) *queryB
query.AddWhere("user_id = ?")
query.AddArg(userID)

if filter.UnreadOnly != nil && *filter.UnreadOnly == true {
if filter.UnreadOnly != nil && *filter.UnreadOnly {
query.AddWhere("read_at IS NULL")
}

Expand Down

0 comments on commit 71e0a72

Please sign in to comment.