@ammarkhalidfarooq/dashboard-package 0.4.80 → 0.4.81

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
@@ -5675,11 +5675,11 @@ var OverallSection = function OverallSection(_ref) {
5675
5675
  id: campaign.campaignName ? campaign.campaignName.split(" ").filter(Boolean).map(function (word) {
5676
5676
  return word[0];
5677
5677
  }).join("").toUpperCase().slice(0, 2) : "??",
5678
- name: campaign.campaignName || "Untitled Campaign",
5679
- val1: "$".concat(formatNumber(campaign.raisedAmount || 0)),
5678
+ name: campaign.title || "Untitled Campaign",
5679
+ val1: "$".concat(formatNumber(campaign.collectedAmount || 0)),
5680
5680
  type: "progress",
5681
- progress: Math.round((campaign.raisedAmount || 0) / (campaign.totalAmount || 1) * 100),
5682
- val3: formatNumber(campaign.donors || 0),
5681
+ progress: Math.round((campaign.collectedAmount || 0) / (campaign.usdTargetAmount || 1) * 100),
5682
+ val3: formatNumber(campaign.uniqueDonationsCount || 0),
5683
5683
  val4: "$".concat(formatNumber(campaign.avgGift || 0))
5684
5684
  };
5685
5685
  })