forked from eatvio/eatvio_app
fix: black screen
This commit is contained in:
@@ -105,12 +105,6 @@ class DiaryCubit extends Cubit<DiaryState> {
|
||||
required PortionState portionState,
|
||||
}) async {
|
||||
if (portionState == PortionState.filled_diet || portionState == PortionState.eaten_from_diet) {
|
||||
// await diaryRepository.deleteProductFromMeal(
|
||||
// diaryId: diaryId,
|
||||
// mealId: mealId,
|
||||
// portionId: portionId,
|
||||
// );
|
||||
// todo delete product from diet
|
||||
await diaryRepository.addPortionToMeal(
|
||||
diaryId: diaryId,
|
||||
mealId: mealId,
|
||||
|
||||
Reference in New Issue
Block a user