@aclymatepackages/modules 2.1.4 → 2.1.5
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/package.json
CHANGED
|
@@ -56,6 +56,7 @@ const AccountingChartTooltip = ({
|
|
|
56
56
|
if (isPledgeYear) {
|
|
57
57
|
return { title, subtitle: "Pledge Year" };
|
|
58
58
|
}
|
|
59
|
+
|
|
59
60
|
if (future) {
|
|
60
61
|
return {
|
|
61
62
|
title,
|
|
@@ -123,7 +124,12 @@ const AccountingChart = ({
|
|
|
123
124
|
tonsCo2e,
|
|
124
125
|
}) => {
|
|
125
126
|
if (baseline) {
|
|
126
|
-
return {
|
|
127
|
+
return {
|
|
128
|
+
baseline: 100,
|
|
129
|
+
isPledgeYear: pledgeYear === dayjs(baselineDate).year(),
|
|
130
|
+
year,
|
|
131
|
+
tonsCo2e,
|
|
132
|
+
};
|
|
127
133
|
}
|
|
128
134
|
|
|
129
135
|
if (!pledgeYear || pledgeYear > year) {
|