Skip to content

Commit

Permalink
Update selesctors.js
Browse files Browse the repository at this point in the history
  • Loading branch information
10Artur committed Dec 26, 2023
1 parent deb08c7 commit 4400d79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/redux/selesctors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ export const selectToken = (state) => state.auth.token;

export const selectUserStatistics = (state) => state.data.statistics;

export const selectIsLoading = (state) => state.data.isLoading;

export const selectUserData = (state) => state.data.data;

export const selectUserMeals = (state) => state.data.data.consumedMealsByDay;

export const selectDailyNutrition = (state) =>
state.data.data.user.dailyNutrition;
state.data.data.user.dailyNutrition;

export const selectRecFood = (state) => state.data.recommendedFood;
export const selectRecFood = (state) => state.data.recommendedFood;

0 comments on commit 4400d79

Please sign in to comment.