Skip to content

Commit

Permalink
Merge pull request #204 from GSG-G8/197-chart-refactor
Browse files Browse the repository at this point in the history
Dashboard | fix chart
  • Loading branch information
Asmaathabet authored Jun 10, 2020
2 parents 419bf69 + 72fd80f commit d54c720
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/dashboard/chart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d54c720

Please sign in to comment.