aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/post/post.component.ts
diff options
context:
space:
mode:
authorDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-11 21:09:47 +0200
committerDanail Dimitrov <danaildimitrov321@gmail.com>2021-03-11 21:09:47 +0200
commitfe4c9eaeac345c63e0c08c43b9dc3185d07716e8 (patch)
treef0b884e19a5a44357197ed6951e7d2ef3d5f01d7 /src/app/components/post/post.component.ts
parent1f008dfc777022582e5e0cf0823175e66c2790cf (diff)
downloadDevHive-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/components/post/post.component.ts')
-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 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();