From 72fd80fe6814623ee50b4909f856ff67afe8d0df Mon Sep 17 00:00:00 2001 From: ahmadysalah Date: Wed, 10 Jun 2020 14:35:21 +0300 Subject: [PATCH] fix cahrt to show statics folowing th e monthes #197 --- client/src/components/dashboard/chart/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/dashboard/chart/index.js b/client/src/components/dashboard/chart/index.js index 6f43d99..62470df 100644 --- a/client/src/components/dashboard/chart/index.js +++ b/client/src/components/dashboard/chart/index.js @@ -12,7 +12,9 @@ class ChartsPage extends React.Component { const SubmittedDates = ( await axios.get('api/v1/dashboard/applicants') ).data.data.map(({ applicationSubmittedDate }) => - applicationSubmittedDate ? applicationSubmittedDate.split('-')[1] : '' + applicationSubmittedDate + ? applicationSubmittedDate.split('T')[0].split('-')[2] + : '' ); const Months = [ '01',