diff --git a/package.json b/package.json index fabac25b..1fa45c5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "1.4.6", + "version": "1.4.7", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/lib/components/lemmy/post/PostVote.svelte b/src/lib/components/lemmy/post/PostVote.svelte index e087726a..f3f6610f 100644 --- a/src/lib/components/lemmy/post/PostVote.svelte +++ b/src/lib/components/lemmy/post/PostVote.svelte @@ -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"