aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-14 20:04:36 +0200
committerDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-14 20:04:36 +0200
commitb428eaddb497ac0edc97020c310fa72eeab82e7e (patch)
tree1e74feb1d0610bbfcdede552bd4b207db2c06e8a /src/app
parent07c30c0896de316119b188c9e62f4666bf0cb2a9 (diff)
downloadDevHive-Angular-b428eaddb497ac0edc97020c310fa72eeab82e7e.tar
DevHive-Angular-b428eaddb497ac0edc97020c310fa72eeab82e7e.tar.gz
DevHive-Angular-b428eaddb497ac0edc97020c310fa72eeab82e7e.zip
fixed a bug when rating should be deleted
Diffstat (limited to 'src/app')
-rw-r--r--src/app/components/post/post.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/components/post/post.component.ts b/src/app/components/post/post.component.ts
index 572ad9c..89620d7 100644
--- a/src/app/components/post/post.component.ts
+++ b/src/app/components/post/post.component.ts
@@ -115,7 +115,7 @@ export class PostComponent implements OnInit {
}
private deleteRating(ratingId: string, isLike: boolean): void {
- this._ratingServe.deleteRatingFromSessionStorageRequest(Guid.parse(this.paramId)).subscribe(
+ this._ratingServe.deleteRatingFromSessionStorageRequest(Guid.parse(ratingId)).subscribe(
() => {
this.votesNumber += 1 - Number(isLike) * 2;
}