We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b45101b commit 5893169Copy full SHA for 5893169
components/TReviewCount.vue
@@ -27,7 +27,11 @@ export default {
27
}),
28
computed: {
29
reviewsCount() {
30
- return this.profile.reviewsCount || this.reviews.length || 0
+ if (this.profile?.reviewsCount) {
31
+ return this.profile.reviewsCount
32
+ }
33
+
34
+ return this.reviews.length || 0
35
},
36
reviewsAvg() {
37
if (this.profile?.reviewsAvg) {
@@ -63,7 +67,7 @@ export default {
63
67
64
68
let newReviews = []
65
69
66
- if (this.username) {
70
+ if (this.profile.username) {
71
const reviewsRef = await firestore
72
.collection('stories')
73
.where('receiver.username', '==', this.profile.username)
0 commit comments