diff options
| author | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-03-11 21:09:47 +0200 |
|---|---|---|
| committer | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-03-11 21:09:47 +0200 |
| commit | fe4c9eaeac345c63e0c08c43b9dc3185d07716e8 (patch) | |
| tree | f0b884e19a5a44357197ed6951e7d2ef3d5f01d7 /src/app | |
| parent | 1f008dfc777022582e5e0cf0823175e66c2790cf (diff) | |
| download | DevHive-Angular-fe4c9eaeac345c63e0c08c43b9dc3185d07716e8.tar DevHive-Angular-fe4c9eaeac345c63e0c08c43b9dc3185d07716e8.tar.gz DevHive-Angular-fe4c9eaeac345c63e0c08c43b9dc3185d07716e8.zip | |
Post rating shows current rating(not static number)
Diffstat (limited to 'src/app')
| -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 39391ad..f813d8c 100644 --- a/src/app/components/post/post.component.ts +++ b/src/app/components/post/post.component.ts @@ -31,7 +31,7 @@ export class PostComponent implements OnInit { (result: object) => { Object.assign(this.post, result); this.post.fileURLs = Object.values(result)[7]; - this.votesNumber = 23; + this.votesNumber = this.post.currentRating; this.timeCreated = new Date(this.post.timeCreated).toLocaleString('en-GB'); this.loadUser(); |
