@becollective/utils 1.4.0-1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle.js CHANGED
@@ -85,7 +85,7 @@ var isUnderSixteen = function isUnderSixteen(dateOfBirth) {
85
85
  };
86
86
  var datesByThemselves = function datesByThemselves(a, b) {
87
87
  if (!a.from) return 1;
88
- return moment(a) - moment(b);
88
+ return moment(a.from) - moment(b.from);
89
89
  };
90
90
 
91
91
  var _require = require('@becollective/constants'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@becollective/utils",
3
- "version": "1.4.0-1",
3
+ "version": "1.4.1",
4
4
  "description": "Common utilities",
5
5
  "main": "bundle.js",
6
6
  "scripts": {
package/src/date-time.js CHANGED
@@ -40,5 +40,5 @@ export const isUnderSixteen = dateOfBirth => {
40
40
 
41
41
  export const datesByThemselves = (a, b) => {
42
42
  if (!a.from) return 1;
43
- return moment(a) - moment(b);
43
+ return moment(a.from) - moment(b.from);
44
44
  };