diff --git a/src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx b/src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx index 49057b0c..35c36c48 100644 --- a/src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx +++ b/src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx @@ -18,7 +18,7 @@ export const SuggestionVoteBox = ({ }) => { const intl = useIntl(); const { isLoggedIn } = useAuth(); - const { activeVote, voteSide, handleVote } = useVote( + const { activeVote, voteSide, handleVote, isVoteReady } = useVote( voteableType, voteableId, totalUpvote, @@ -27,6 +27,8 @@ export const SuggestionVoteBox = ({ ); const { showModal } = useModal(); + const buttonDisabled = disabled || !isVoteReady; + const handleDownvote = () => { if (isLoggedIn) { if (!(activeVote && !voteSide)) { @@ -64,9 +66,9 @@ export const SuggestionVoteBox = ({