Fix upvote hover style not showing for first zap (#1418)

This commit is contained in:
ekzyis 2024-09-20 16:44:15 +02:00 committed by GitHub
parent 8c9d4aa59b
commit 4e7b4ee571
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -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
? {

View File

@ -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)'
}