actually fix desync
Build / Build-image (push) Successful in 1m16s

This commit is contained in:
2026-08-18 14:52:01 +02:00
parent db91e3ba86
commit f1fbd8b782
+2 -2
View File
@@ -36,11 +36,11 @@
{ {
if (type == 1) { if (type == 1) {
this.likes++; this.likes++;
if (this.current != 0) this.dislikes--; if (this.current == -1) this.dislikes--;
} }
else if (type == -1) { else if (type == -1) {
this.dislikes++; this.dislikes++;
if (this.current != 0) this.likes--; if (this.current == 1) this.likes--;
} }
this.current = type; this.current = type;