6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit f89fb598
Changed files
comwell_key_app/lib/housekeeping/cubit/housekeeping_cubit.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Diff
diff --git a/comwell_key_app/lib/housekeeping/cubit/housekeeping_cubit.dart b/comwell_key_app/lib/housekeeping/cubit/housekeeping_cubit.dart
index 8ec10f58..86e7ab9a 100644
--- a/comwell_key_app/lib/housekeeping/cubit/housekeeping_cubit.dart
+++ b/comwell_key_app/lib/housekeeping/cubit/housekeeping_cubit.dart
@@ -42,7 +42,6 @@ class HouseKeepingCubit extends Cubit<HouseKeepingState> {
}
Future<void> onOrderHousekeepingClicked(Booking booking) async {
- print("service list: ${state.selectedServices}");
final housekeeping = Housekeeping.toJson(booking.hotelCode, booking.roomNumber, state.selectedServices.map((e) => HouseKeepingService.values.firstWhere((element) => element.name == e)).toList());
await houseKeepingRepository.saveHouseKeepingOrdered(housekeeping);
final analyticsEventItem = AnalyticsEventItem(
@@ -50,7 +49,7 @@ class HouseKeepingCubit extends Cubit<HouseKeepingState> {
currency: "DKK",
value: 0,
placement: "housekeeping_page",
- items: state.selectedServices,
+ items: state.selectedServices.map((e) => HouseKeepingService.values.firstWhere((element) => element.name == e).name).toList(),
itemId: "housekeeping",
itemName: "itemName",
price: 0,