@ammarkhalidfarooq/dashboard-package 0.3.15 → 0.3.17

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.cjs.js CHANGED
@@ -4741,7 +4741,7 @@ function formatNumber(num) {
4741
4741
  }
4742
4742
 
4743
4743
  var OverallSection = function OverallSection(_ref) {
4744
- var _apiData$totalRaisedP, _apiData$netRaisedPre;
4744
+ var _apiData$totalRaisedP, _apiData$netRaisedCar, _apiData$netRaisedPre;
4745
4745
  var _ref$apiData = _ref.apiData,
4746
4746
  apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
4747
4747
  primaryCharts = _ref.primaryCharts,
@@ -4800,8 +4800,8 @@ var OverallSection = function OverallSection(_ref) {
4800
4800
  icon: iconsMaterial.PaidOutlined
4801
4801
  },
4802
4802
  "Net Raised": {
4803
- value: "$".concat(formatNumber(apiData === null || apiData === void 0 ? void 0 : apiData.netRaisedCard)) || "$222.3K",
4804
- subValue: "".concat(Number((_apiData$netRaisedPre = apiData === null || apiData === void 0 ? void 0 : apiData.netRaisedPrev) !== null && _apiData$netRaisedPre !== void 0 ? _apiData$netRaisedPre : 0).toFixed(2)) || "92.3% pass-through",
4803
+ value: "$".concat(formatNumber((_apiData$netRaisedCar = apiData === null || apiData === void 0 ? void 0 : apiData.netRaisedCard) !== null && _apiData$netRaisedCar !== void 0 ? _apiData$netRaisedCar : 0)),
4804
+ subValue: "".concat(Number((_apiData$netRaisedPre = apiData === null || apiData === void 0 ? void 0 : apiData.netRaisedPrev) !== null && _apiData$netRaisedPre !== void 0 ? _apiData$netRaisedPre : 0).toFixed(2), "% vs ").concat(dateName !== null && dateName !== void 0 ? dateName : "previous period"),
4805
4805
  label: "Net Raised",
4806
4806
  icon: iconsMaterial.FavoriteOutlined
4807
4807
  },