Skip to content

Commit e705740

Browse files
committed
dont update heat score live and remove details from report
1 parent 922092d commit e705740

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

frontend/src/components/app/users/UserProfile.vue

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="profileContainer">
44
<div id="sliderScoreContainer" class="text-center w-full rounded-lt-md heatScore relative h-6">
55
<div id="sliderScore" class="bg-purple-matcha absolute top-0 flex flex-col items-center justify-center h-12 w-auto rounded-b-md">
6-
<h1 class="text-white-matcha px-2"><span class="font-bold">{{getHeatScore}}</span> likes</h1>
6+
<h1 class="text-white-matcha px-2">score <span class="font-bold">{{user.heat_score}}</span></h1>
77
</div>
88
</div>
99
<div class="text-center text-wrap p-8 mt-4 border-b">
@@ -156,23 +156,12 @@ export default {
156156
}
157157
},
158158
async makeReport() {
159-
await this.$http.post(`/profile/report/${this.user.id}`, { reason: this.report, details: '' });
159+
await this.$http.post(`/profile/report/${this.user.id}`, { reason: this.report });
160160
},
161161
async block() {
162162
return true;
163163
},
164164
},
165-
computed: {
166-
getHeatScore() {
167-
if (this.likeButtons.likeClicked) {
168-
return this.user.heat_score + 1;
169-
}
170-
if (this.likeButtons.superLikeClicked) {
171-
return this.user.heat_score + 10;
172-
}
173-
return this.user.heat_score;
174-
},
175-
},
176165
async beforeMount() {
177166
const sliderRangesRequest = await this.$http.get('/search/values');
178167
const maxScore = sliderRangesRequest.data.search_minmax.max_score;

0 commit comments

Comments
 (0)