diff --git a/Frontend/lib/mih_packages/mzansi_profile/business_profile/components/mih_review_business_window.dart b/Frontend/lib/mih_packages/mzansi_profile/business_profile/components/mih_review_business_window.dart index c6ad65a5..2254f42a 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/business_profile/components/mih_review_business_window.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/business_profile/components/mih_review_business_window.dart @@ -83,6 +83,9 @@ class _MihReviewBusinessWindowState extends State { await MihMzansiDirectoryServices() .deleteBusinessReview( widget.businessReview!.idbusiness_ratings, + widget.businessReview!.business_id, + widget.businessReview!.rating_score, + widget.business.rating, ) .then((statusCode) { Navigator.of(context).pop(); //Remove loading dialog @@ -159,9 +162,12 @@ class _MihReviewBusinessWindowState extends State { await MihMzansiDirectoryServices() .updateBusinessReview( widget.businessReview!.idbusiness_ratings, + widget.businessReview!.business_id, _reviewTitleController.text, _reviewDescriptionController.text, _reviewScoreController.text, + widget.businessReview!.rating_score, + widget.business.rating, ) .then((statusCode) { Navigator.of(context).pop(); //Remove loading dialog