forked from yaso_meth/mih-project
fix no review display bug
This commit is contained in:
@@ -33,7 +33,10 @@ class MihMzansiDirectoryServices {
|
||||
List<BusinessReview> businessReviews = List<BusinessReview>.from(
|
||||
l.map((model) => BusinessReview.fromJson(model)));
|
||||
return businessReviews;
|
||||
} else {
|
||||
} else if (response.statusCode == 404){
|
||||
return [];
|
||||
}
|
||||
else {
|
||||
throw Exception('failed to fetch Business Reviews');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user