diff options
| 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 |
| commit | b428eaddb497ac0edc97020c310fa72eeab82e7e (patch) | |
| tree | 1e74feb1d0610bbfcdede552bd4b207db2c06e8a /src/app/components/post/post.component.ts | |
| parent | 07c30c0896de316119b188c9e62f4666bf0cb2a9 (diff) | |
| download | DevHive-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/components/post/post.component.ts')
| -rw-r--r-- | src/app/components/post/post.component.ts | 2 |
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; } |
