Skip to content

Commit

Permalink
Исправил линтер
Browse files Browse the repository at this point in the history
  • Loading branch information
artytrik committed Oct 9, 2019
1 parent 9b48488 commit 0a8ddde
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ export const getTripCost = (points) => (

export const getInformation = (points) =>
points.length > 0 ?
({
cities: points.map(({destination: {name}}) => name),
dateStart: points[0].dateStart,
dateFinish: points[points.length - 1].dateFinish
}) : ({
cities: [],
dateStart: {},
dateFinish: {}
});
({
cities: points.map(({destination: {name}}) => name),
dateStart: points[0].dateStart,
dateFinish: points[points.length - 1].dateFinish
}) : ({
cities: [],
dateStart: {},
dateFinish: {}
});

export const transformFirstLetter = (string) => `${string[0].toUpperCase()}${string.substring(1)}`;

Expand Down

0 comments on commit 0a8ddde

Please sign in to comment.