fix: count shaka likes

This commit is contained in:
Alejandro Gomez 2023-01-06 16:58:31 +01:00
parent e724c6ba21
commit 4680397e1a
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -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);