From 4680397e1abe7a477af57c8d2feea167422074b4 Mon Sep 17 00:00:00 2001 From: Alejandro Gomez Date: Fri, 6 Jan 2023 16:58:31 +0100 Subject: [PATCH] fix: count shaka likes --- src/element/Note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/element/Note.js b/src/element/Note.js index c0bfb6b9..b700a679 100644 --- a/src/element/Note.js +++ b/src/element/Note.js @@ -20,7 +20,7 @@ export default function Note(props) { const dataEvent = props["data-ev"]; const reactions = props.reactions; const deletion = props.deletion; - const likes = reactions?.filter(({ Content }) => Content === "+").length ?? 0 + const likes = reactions?.filter(({ Content }) => Content === "+" || Content === "🤙").length ?? 0 const dislikes = reactions?.filter(({ Content }) => Content === "-").length ?? 0 const publisher = useEventPublisher(); const [showReply, setShowReply] = useState(false);