Skip to content

Commit

Permalink
fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
chebizarro committed Nov 20, 2024
1 parent 60f9840 commit dd64e6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/presentation/order/bloc/order_details_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class OrderDetailsBloc extends Bloc<OrderDetailsEvent, OrderDetailsState> {

void _onLoadOrderDetails(
LoadOrderDetails event, Emitter<OrderDetailsState> emit) {
emit(state.copyWith(status: OrderDetailsStatus.loading));
emit(state.copyWith(status: OrderDetailsStatus.loaded, order: event.order));
}

Expand All @@ -33,7 +32,7 @@ class OrderDetailsBloc extends Bloc<OrderDetailsEvent, OrderDetailsState> {

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!);
Expand Down

0 comments on commit dd64e6b

Please sign in to comment.