Skip to content

Commit

Permalink
Merge pull request #10 from revanthkumarJ/main
Browse files Browse the repository at this point in the history
fix: firebase deploy
  • Loading branch information
Nagarjuna0033 authored Dec 26, 2024
2 parents fcf0b6a + ef785a5 commit 7101e9b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/node_modules
/.pnp
.pnp.js
.env
/.env
# testing
/coverage

Expand Down
39 changes: 20 additions & 19 deletions src/utils/formatMessData.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
export const formatMessData = (res) => {
let FormattedData = {};
const data = res.data.data;

for (let day in data) {
let meals = data[day];
let formattedMeals = {};

for (let meal in meals) {
const val = meals[meal].reduce(
(acc, val) => acc + ", " + val.itemName,
""
);
formattedMeals[meal] = val.substring(2);
let FormattedData = {};
const data = res.data.data;

for (let day in data) {
let meals = data[day];
let formattedMeals = {};

for (let meal in meals) {
const val = meals[meal].reduce(
(acc, val) => acc + ", " + val.itemName,
""
);
formattedMeals[meal] = val.substring(2);
}

FormattedData[day] = formattedMeals;
}

FormattedData[day] = formattedMeals;
}

return FormattedData;
};

return FormattedData;
};

0 comments on commit 7101e9b

Please sign in to comment.