Skip to content

Commit

Permalink
chore: fix rating duplicate (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahnitam authored Nov 7, 2022
1 parent 9fb7a17 commit 7241a7f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/controllers/book_detail_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,8 @@ class BookDetailController extends GetxController {
required rate,
required comment,
}) async {
_bookController
.rateBook(book: book!, rate: rate, comment: comment)
.whenComplete(() async {
await _bookController.rateBook(
book: book!,
comment: comment,
rate: rate,
);
reloadBookRating();
});
_bookController.rateBook(book: book!, rate: rate, comment: comment);
reloadBookRating();
},
),
);
Expand Down

0 comments on commit 7241a7f

Please sign in to comment.