fix: hide votesCnt when voting fails

This commit is contained in:
MTG2000
2022-07-21 19:38:04 +03:00
parent 054853a42d
commit 58f51bbcdb

View File

@@ -257,7 +257,7 @@ export default function VoteButton({
/><span className="align-middle w-[4ch]"> {numberFormatter(votes + voteCnt)}</span>
</div>
<AnimatePresence>
{btnState === 'loading' &&
{(btnState === 'loading' || btnState === 'fail') &&
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}