Skip to content

Commit

Permalink
Change so that added review will be at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperTurtle committed Dec 20, 2023
1 parent d3424e5 commit 029cbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/products/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ function reviewForm() {
data.user.profile = {
profile_picture: this.userProfilePicture
};
this.reviews.push(data);
this.reviews.unshift(data);
this.updateReviewData();
this.userHasReviewed = true;
this.rating = '';
Expand Down

0 comments on commit 029cbfb

Please sign in to comment.