mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-08 14:20:44 -03:00
Arreglado que no se podia dar like
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
likePost(post),
|
||||
new Promise((resolve) => setTimeout(resolve, 300))
|
||||
]);
|
||||
console.log(1);
|
||||
if (ok) {
|
||||
if (post.isLiked) {
|
||||
post.likesCount--;
|
||||
@@ -93,7 +94,9 @@
|
||||
errorLike = true;
|
||||
mensajeError = message;
|
||||
}
|
||||
console.log(1);
|
||||
updatePostStore(post.id, post);
|
||||
console.log(1);
|
||||
cargandoLike = false;
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user