diff --git a/lib/presentation/order/bloc/order_details_bloc.dart b/lib/presentation/order/bloc/order_details_bloc.dart index 827f775e..4ed1dc45 100644 --- a/lib/presentation/order/bloc/order_details_bloc.dart +++ b/lib/presentation/order/bloc/order_details_bloc.dart @@ -19,7 +19,6 @@ class OrderDetailsBloc extends Bloc { void _onLoadOrderDetails( LoadOrderDetails event, Emitter emit) { - emit(state.copyWith(status: OrderDetailsStatus.loading)); emit(state.copyWith(status: OrderDetailsStatus.loaded, order: event.order)); } @@ -33,7 +32,7 @@ class OrderDetailsBloc extends Bloc { late MostroMessage order; - if (event.order.orderType == OrderType.buy.value) { + if (event.order.orderType == OrderType.buy) { order = await mostroService.takeBuyOrder(event.order.orderId!); } else { order = await mostroService.takeSellOrder(event.order.orderId!);