Website Summary Files Commits Branches @commit @diff @stats
path: root / src / app / components / post / post.component.ts
diff options
context:
space:
mode:
Commitb428eaddb497ac0edc97020c310fa72eeab82e7e (patch)
Author
 Danail Dimitrov <danaildimitrov321@gmail.com>
2021-03-14 20:04:36 +0200
Committer
 Danail Dimitrov <danaildimitrov321@gmail.com>
2021-03-14 20:04:36 +0200
Files1e74feb1d0610bbfcdede552bd4b207db2c06e8a /src/app/components/post/post.component.ts
DevHive-Angular-b428eaddb497ac0edc97020c310fa72eeab82e7e.tar
DevHive-Angular-b428eaddb497ac0edc97020c310fa72eeab82e7e.tar.gz
DevHive-Angular-b428eaddb497ac0edc97020c310fa72eeab82e7e.zip
Parent07c30c0896de316119b188c9e62f4666bf0cb2a9 (diff)
fixed a bug when rating should be deleted
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/app/components/post/post.component.ts2
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;
}