diff options
author | Yorhel <git@yorhel.nl> | 2022-10-24 10:37:17 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2022-10-24 10:37:17 +0200 |
commit | c8bfcd60b169b929f10633ac4bad535071fcf2c9 (patch) | |
tree | 70bcfc10a82508e9b1711a120de898fb717e5422 | |
parent | d5acfed7a962e79ea92d4b8ff5c629ebb2077b5c (diff) |
Tagmod: Fix mod overrule button when downvoting
-rw-r--r-- | elm/Tagmod.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Tagmod.elm b/elm/Tagmod.elm index fe4b5850..8f62791e 100644 --- a/elm/Tagmod.elm +++ b/elm/Tagmod.elm @@ -164,7 +164,7 @@ viewTag t sel vid mod = [ td [ colspan 4 ] [ text "<- don't forget to rate" ] ] else [ td [ class "tc_myover buts" ] <| - if t.vote <= 0 || not mod then [] else + if t.vote == 0 || not mod then [] else [ a [ href "#", onMouseOver (SetSel t.id Over), onMouseOut (SetSel "" NoSel), onClickD (SetOver t.id (not t.overrule)), classList [("ov", t.overrule || sel == Over)], title "Overrule" ] [] ] , td [ class "tc_myspoil buts" ] <| if t.vote <= 0 then [] else |