From 58f51bbcdbd43a34b25219bb91bed748fd6f8b52 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Thu, 21 Jul 2022 19:38:04 +0300 Subject: [PATCH] fix: hide votesCnt when voting fails --- src/Components/VoteButton/VoteButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/VoteButton/VoteButton.tsx b/src/Components/VoteButton/VoteButton.tsx index 4cbeb5a..4987313 100644 --- a/src/Components/VoteButton/VoteButton.tsx +++ b/src/Components/VoteButton/VoteButton.tsx @@ -257,7 +257,7 @@ export default function VoteButton({ /> {numberFormatter(votes + voteCnt)} - {btnState === 'loading' && + {(btnState === 'loading' || btnState === 'fail') &&