Skip to content

Commit

Permalink
fix like notification
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jun 30, 2024
1 parent 40d7d6c commit 74b81fd
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions components/Notifications/NotificationCard/LikeNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ const LikeNotification = ({ notification }) => {
{notification.action_type == "create" ? (
<>
<span className="font-bold">
{notification?.notifiers?.map(notifier => {
return (
<Link
href={`/people/${notifier.slug}?clearNotification=${notification.id}`}
className="hover:underline"
>
{notifier.firstName?notifier.firstName:notifier.username}
</Link>
);
})}
<Link
href={`/people/${notification.actor.slug}?clearNotification=${notification.id}`}
className="hover:underline"
>
{notification.actor.firstName
? notification.actor.firstName
: notification.actor.username}
</Link>
</span>{" "}
reacted to your post, {""}
<Link
Expand Down

0 comments on commit 74b81fd

Please sign in to comment.