fix: checkout items
This commit is contained in:
@@ -135,6 +135,7 @@ class HomeRightTitle extends StatelessWidget {
|
||||
if (table == null) {
|
||||
context.push(DashboardPage(
|
||||
index: 1,
|
||||
items: items,
|
||||
));
|
||||
}
|
||||
},
|
||||
|
||||
@@ -75,7 +75,7 @@ class _SaveOrderDialogState extends State<SaveOrderDialog> {
|
||||
onPressed: () {
|
||||
context
|
||||
.read<CheckoutBloc>()
|
||||
.add(const CheckoutEvent.started());
|
||||
.add(const CheckoutEvent.started([]));
|
||||
context
|
||||
.read<GetTableBloc>()
|
||||
.add(const GetTableEvent.getTables());
|
||||
|
||||
@@ -177,7 +177,7 @@ class _SuccessPaymentDialogState extends State<SuccessPaymentDialog> {
|
||||
// For regular payment flow, reset and go to root
|
||||
context
|
||||
.read<CheckoutBloc>()
|
||||
.add(const CheckoutEvent.started());
|
||||
.add(const CheckoutEvent.started([]));
|
||||
context
|
||||
.read<GetTableBloc>()
|
||||
.add(const GetTableEvent.getTables());
|
||||
|
||||
Reference in New Issue
Block a user