Skip to content

Commit

Permalink
fix: howto useful count when using the "call to action" section (#3961)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojsnunes authored Oct 26, 2024
1 parent ddd95c5 commit 916c7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Howto/Content/Howto/Howto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const Howto = observer(({ howto }: HowtoParams) => {
</Button>
{howto.moderation === IModerationStatus.ACCEPTED && (
<UsefulStatsButton
votedUsefulCount={howto.votedUsefulBy?.length || 0}
votedUsefulCount={usefulCount}
hasUserVotedUseful={voted}
isLoggedIn={!!loggedInUser}
onUsefulClick={() =>
Expand Down

0 comments on commit 916c7f2

Please sign in to comment.