@ammarkhalidfarooq/dashboard-package 0.3.10 → 0.3.11

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/dist/index.es.js CHANGED
@@ -4739,6 +4739,7 @@ function formatNumber(num) {
4739
4739
  }
4740
4740
 
4741
4741
  var OverallSection = function OverallSection(_ref) {
4742
+ var _apiData$totalRaisedP;
4742
4743
  var _ref$apiData = _ref.apiData,
4743
4744
  apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
4744
4745
  primaryCharts = _ref.primaryCharts,
@@ -4791,7 +4792,7 @@ var OverallSection = function OverallSection(_ref) {
4791
4792
  var metricInfo = {
4792
4793
  "Total Raised": {
4793
4794
  value: "$".concat(formatNumber(apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedCard)) || "$240.9K",
4794
- subValue: "".concat(apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedPrev.toFixed(2), "% vs ").concat(dateName) || "18% vs last month",
4795
+ subValue: "".concat(apiData === null || apiData === void 0 || (_apiData$totalRaisedP = apiData.totalRaisedPrev) === null || _apiData$totalRaisedP === void 0 ? void 0 : _apiData$totalRaisedP.toFixed(2), "% vs ").concat(dateName) || "18% vs last month",
4795
4796
  label: "Total Revenue",
4796
4797
  icon: PaidOutlined
4797
4798
  },