rogotsky / kmu-filters

0 stars 0 forks source link

Make all calculations before return #5

Open VadSiam opened 5 years ago

VadSiam commented 5 years ago

https://github.com/rogotsky/kmu-filters/blob/87cdc835753a2d8cd6520c66e3e8555c7e95ad81/src/components/Posts/Post.js#L9

please make all calculations before return (it makes the code easy to read): const dataString = (dd.length === 1 ? 0${dd} : dd) + divider + (mm.length === 1 ? 0${mm} : mm) + divider + yyyy; return dataString;

rogotsky commented 5 years ago

@VadSiam Fixed