@unitedstatespowersquadrons/components 1.3.4-2 → 1.3.4-3

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.
@@ -16,10 +16,9 @@ const LiveDateBadge = (props: Props) => {
16
16
  const now = Math.floor(Date.now() / 1000);
17
17
 
18
18
  const badgeTimestamp = Math.floor(new Date(timestamp).getTime() / 1000);
19
- const badgeDate = new Date(badgeTimestamp * 1000);
20
19
  const badgeDateDiff = badgeTimestamp - now;
21
20
  const color = dateBadgeColor(badgeDateDiff);
22
- const content = (new TimeAgo("en")).format(badgeDate);
21
+ const content = (new TimeAgo("en")).format(badgeDateDiff);
23
22
 
24
23
  return <Badge color={color} content={content} label={label} logo={logo} />;
25
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.3.4-2",
3
+ "version": "1.3.4-3",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {