Fix upvote hover style not showing for first zap (#1418)
This commit is contained in:
parent
8c9d4aa59b
commit
4e7b4ee571
|
@ -227,7 +227,7 @@ export default function UpVote ({ item, className }) {
|
|||
}
|
||||
}
|
||||
|
||||
const fillColor = meSats && (hover || pending ? nextColor : color)
|
||||
const fillColor = hover || pending ? nextColor : color
|
||||
|
||||
const style = useMemo(() => (fillColor
|
||||
? {
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
export default function getColor (meSats) {
|
||||
if (!meSats || meSats <= 10) {
|
||||
if (!meSats || meSats === 0) {
|
||||
return '#a5a5a5'
|
||||
}
|
||||
|
||||
if (meSats <= 10) {
|
||||
return 'var(--bs-secondary)'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue