From caf83d8d5479945926b262e6d2ac362f08561513 Mon Sep 17 00:00:00 2001 From: agentmilindu Date: Mon, 13 Apr 2020 14:28:45 +0530 Subject: [PATCH] Minor fixes --- src/routes/Needs/components/NeedsList/NeedsList.js | 2 +- src/routes/Needs/components/NewNeedTable/NewNeedTable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/Needs/components/NeedsList/NeedsList.js b/src/routes/Needs/components/NeedsList/NeedsList.js index 0b59344..7c3b9d6 100644 --- a/src/routes/Needs/components/NeedsList/NeedsList.js +++ b/src/routes/Needs/components/NeedsList/NeedsList.js @@ -70,7 +70,7 @@ function createAllData(needs) { `id-${Math.random()}`, need.name, need.amount, - need.createdAt.seconds * 1000, + Date.parse(need.createdAt), need.createdBy, need.location ) diff --git a/src/routes/Needs/components/NewNeedTable/NewNeedTable.js b/src/routes/Needs/components/NewNeedTable/NewNeedTable.js index ce1aac4..4e08669 100644 --- a/src/routes/Needs/components/NewNeedTable/NewNeedTable.js +++ b/src/routes/Needs/components/NewNeedTable/NewNeedTable.js @@ -172,7 +172,7 @@ const EnhancedTableToolbar = (props) => { variant="h6" id="tableTitle" component="div"> - Nutrition + Demands )}