mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-03 11:40:44 +03:00
fixed default vote value issue
This commit is contained in:
parent
daf479174f
commit
7a4cce9166
@ -87,13 +87,14 @@ const UpvoteView = ({
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
setSliderValue(
|
||||
(isVoted || isDownVoted)
|
||||
? 1
|
||||
: upvotePercent <= 1
|
||||
? upvotePercent
|
||||
: 1
|
||||
)
|
||||
const value = (isVoted || isDownVoted)
|
||||
? 1
|
||||
: upvotePercent <= 1
|
||||
? upvotePercent
|
||||
: 1;
|
||||
|
||||
setSliderValue(value);
|
||||
_calculateEstimatedAmount(value);
|
||||
}, [upvotePercent])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user