This commit is contained in:
Hamza Aleghwairyeen
2024-04-21 20:03:26 +03:00
parent 94f115fb61
commit 3a0ca74961
18 changed files with 192 additions and 78 deletions

View File

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