Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
auguzsto committed Jun 14, 2023
1 parent 5a2f5c2 commit 9cbe213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/shared/controllers/cart_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class CartController {
}

Future<void> delete(String id) async {
cartRepository.delete(id);
await cartRepository.delete(id);
}
}
3 changes: 1 addition & 2 deletions lib/src/views/client/cart/cart_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ class CartScreen extends StatelessWidget {
await orderController.post(idItem).then(
(value) => List.generate(
cart.length,
(index) async =>
await cartController.delete(cart[index]['id']),
(index) => cartController.delete(cart[index]['id']),
),
);
},
Expand Down

0 comments on commit 9cbe213

Please sign in to comment.