@aclymatepackages/modules 2.1.3 → 2.1.4

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.
@@ -43,6 +43,12 @@ const AccountingChartTooltip = _ref => {
43
43
  } = payload;
44
44
  const buildTextIcon = () => {
45
45
  const title = "".concat(year, "- ").concat((0, _formatters.formatDecimal)(convertCarbonUnits(tonsCo2e || expectedTonsCo2e)), " ").concat(displayUnitLabel);
46
+ if (baseline && isPledgeYear) {
47
+ return {
48
+ title,
49
+ subtitle: "Baseline Year and Pledge Year"
50
+ };
51
+ }
46
52
  if (baseline) {
47
53
  return {
48
54
  title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
@@ -45,6 +45,10 @@ const AccountingChartTooltip = ({
45
45
  convertCarbonUnits(tonsCo2e || expectedTonsCo2e)
46
46
  )} ${displayUnitLabel}`;
47
47
 
48
+ if (baseline && isPledgeYear) {
49
+ return { title, subtitle: "Baseline Year and Pledge Year" };
50
+ }
51
+
48
52
  if (baseline) {
49
53
  return { title, subtitle: "Baseline Year" };
50
54
  }