Skip to content

Commit

Permalink
Merge pull request #28 from sima-land/27-promotion-card-estimate
Browse files Browse the repository at this point in the history
#27 Правки вывода оставшегося времени
  • Loading branch information
krutoo authored Aug 23, 2021
2 parents ebc6fe7 + 79c9aab commit 8c7c64a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ exports[`<Estimate /> should renders correctly 3`] = `
<Estimate
dueDate={2021-01-08T09:00:00.000Z}
>
До 0 янв
До 8 янв
</Estimate>
`;
2 changes: 1 addition & 1 deletion src/desktop/components/promotion-card/estimate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const Estimate = ({ dueDate }: EstimateProps) => {

content = `До ${text}`;
} else {
content = `До ${getMonth(dueDate)} ${MONTH_NAME[getMonth(dueDate)]}`;
content = `До ${getDate(dueDate)} ${MONTH_NAME[getMonth(dueDate)]}`;
}

return (
Expand Down

0 comments on commit 8c7c64a

Please sign in to comment.