From 0f1e677459f4e6afe0e56e15397af37eafd1df2a Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sat, 21 Oct 2023 22:15:16 -0500 Subject: [PATCH] small fix for vote buttons --- src/views/community/components/post-vote-buttions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/community/components/post-vote-buttions.tsx b/src/views/community/components/post-vote-buttions.tsx index 3d0a2d4f2..ae499f3fc 100644 --- a/src/views/community/components/post-vote-buttions.tsx +++ b/src/views/community/components/post-vote-buttions.tsx @@ -63,7 +63,7 @@ export default function PostVoteButtons({ variant={hasUpVote ? "solid" : "ghost"} isLoading={loading} onClick={() => addVote("+")} - isDisabled={!account || !!hasUpVote} + isDisabled={!account || !!hasUpVote || !!hasDownVote} colorScheme={hasUpVote ? "primary" : "gray"} /> {(up || down) && {vote}} @@ -75,7 +75,7 @@ export default function PostVoteButtons({ variant={hasDownVote ? "solid" : "ghost"} isLoading={loading} onClick={() => addVote("-")} - isDisabled={!account || !!hasUpVote} + isDisabled={!account || !!hasUpVote || !!hasDownVote} /> );