mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-28 11:34:24 +01:00
fix: hide votesCnt when voting fails
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user