@ammarkhalidfarooq/dashboard-package 0.3.37 → 0.3.38

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
@@ -5427,7 +5427,7 @@ function formatNumber(num) {
5427
5427
  }
5428
5428
 
5429
5429
  var OverallSection = function OverallSection(_ref) {
5430
- var _apiData$totalRaisedP, _apiData$netRaisedCar, _apiData$netRaisedPre, _apiData$averageDonat, _apiData$averageDonat2;
5430
+ var _apiData$totalRaisedP, _apiData$netRaisedCar, _apiData$netRaisedPre, _apiData$averageDonat, _apiData$averageDonat2, _apiData$roasCard, _apiData$roasCardPrev;
5431
5431
  var _ref$apiData = _ref.apiData,
5432
5432
  apiData = _ref$apiData === void 0 ? {} : _ref$apiData,
5433
5433
  primaryCharts = _ref.primaryCharts,
@@ -5504,8 +5504,8 @@ var OverallSection = function OverallSection(_ref) {
5504
5504
  icon: PaidOutlined
5505
5505
  },
5506
5506
  "ROAS": {
5507
- value: (apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) || "3.0x",
5508
- subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.roasTrend) || "0.4x vs last month",
5507
+ value: "".concat(formatNumber((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0), "x"),
5508
+ subValue: "".concat(Number((_apiData$roasCardPrev = apiData === null || apiData === void 0 ? void 0 : apiData.roasCardPrev) !== null && _apiData$roasCardPrev !== void 0 ? _apiData$roasCardPrev : 0).toFixed(2), "x vs ").concat(dateName !== null && dateName !== void 0 ? dateName : "last month"),
5509
5509
  label: "ROAS",
5510
5510
  icon: TrendingUp
5511
5511
  },