@copart/ops-tool-kit 1.12.21-alpha.0 → 1.12.21-alpha.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.
@@ -47,7 +47,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
47
47
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
48
48
 
49
49
  const name$1 = "@copart/ops-tool-kit";
50
- const version$3 = "1.12.21-alpha.0";
50
+ const version$3 = "1.12.21-alpha.1";
51
51
  const main$1 = "dist/ops-tool-kit.js";
52
52
  const style = "dist/ops-tool-kit.css";
53
53
  const files = [
@@ -25887,12 +25887,13 @@ var getTimeDiff = function getTimeDiff(startsAt) {
25887
25887
  var getSidebarTimeDiff = function getSidebarTimeDiff(startsAt) {
25888
25888
  var startDate = moment(startsAt);
25889
25889
  var todayDate = moment(new Date());
25890
+ var secsDiff = todayDate.diff(startDate, 'seconds');
25890
25891
  var minsDiff = todayDate.diff(startDate, 'minutes');
25891
25892
  var hoursDiff = todayDate.diff(startDate, 'hours');
25892
25893
  var daysDiff = todayDate.diff(startDate, 'days');
25893
25894
  var monthsDiff = todayDate.diff(startDate, 'months');
25894
- if (minsDiff < 1) {
25895
- return '1m ago';
25895
+ if (secsDiff < 60) {
25896
+ return "".concat(secsDiff, "s ago");
25896
25897
  }
25897
25898
  if (minsDiff < 60) {
25898
25899
  return "".concat(minsDiff, "m ago");