fix: incorrect votes

This commit is contained in:
Xyphyn committed 2023-09-10 18:29:04 -07:00
1 parent 4e340f31e9
commit e483d1ac54
2 files changed
+3 -3

No files matched your search

@@ -38,7 +38,7 @@
on:click={async () => {
if (!$profile?.jwt) return
vote = vote == 1 ? 0 : 1
score = await voteItem(post, vote == 1 ? 0 : 1, $profile.jwt)
score = await voteItem(post, vote, $profile.jwt)
}}
size="square-sm"
color="tertiary"
@@ -57,7 +57,7 @@
on:click={async () => {
if (!$profile?.jwt) return
vote = vote == -1 ? 0 : -1
score = await voteItem(post, vote == -1 ? 0 : -1, $profile.jwt)
score = await voteItem(post, vote, $profile.jwt)
}}
size="square-sm"
color="tertiary"