This commit is contained in:
Hamza Aleghwairyeen
2024-04-08 23:28:51 +03:00
parent bc92709f9c
commit 207a87a5f0
5 changed files with 32 additions and 4 deletions

View File

@@ -2458,7 +2458,9 @@ class MapPassengerController extends GetxController {
link: AppLink.getPassengerRate,
payload: {'passenger_id': box.read(BoxName.passengerID)});
if (res != 'failure') {
passengerRate = jsonDecode(res)['message']['rating'].toDouble();
passengerRate = jsonDecode(res)['message']['rating'] == null
? 5
: jsonDecode(res)['message']['rating'].toDouble();
}
}