Skip to content

Commit

Permalink
🔀 merge: dev -> main
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
cloudedpanther authored Jul 5, 2023
2 parents 6ec2a6b + 3e05513 commit b4070cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/reservationConfirm/ReviewModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const ReviewModal = ({ accommodationId, bookId, onClose }: IReviewModal) => {

setErrorMessage('');

const averageRate = Number(
((rating.service + rating.price + rating.facilities) / 3).toFixed(1)
const averageRate = Math.floor(
(rating.service + rating.price + rating.facilities) / 3
);

const newRequestBody = {
Expand Down
1 change: 1 addition & 0 deletions src/views/AccommodationDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const AccommodationDetail = () => {
setRoomData((prev) => ({
...prev,
accommodationName,
accommodationId: id,
rate,
people,
address
Expand Down

0 comments on commit b4070cc

Please sign in to comment.