Skip to content

Commit

Permalink
compact is functional
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Whitton authored Feb 20, 2018
1 parent 1bf785c commit 8b0beb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/components/last-updated.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class LastUpdated extends Component {

render() {
let { measures: { measures }, className, locale } = this.props;
let dates = map(measures, 'formattedUpdatedAt');
compact(dates).sort().reverse();
let dates = compact(map(measures, 'formattedUpdatedAt'))
dates.sort().reverse();
let diff = moment().diff(dates[0], 'days');
let unit = 'day';
if (diff < 1) {
Expand Down

0 comments on commit 8b0beb3

Please sign in to comment.