@playlive/fundraiser-data
    Preparing search index...

    Function extractCampaignAmounts

    • Extract the standard { totalAmount, currentAmount, goalAmount, originalGoalAmount, supportingAmount } scalar breakdown from any Tiltify campaign-shaped payload.

      • null / undefined input returns every field as 0.
      • amount_raised presence toggles currentAmount's source (see CampaignAmounts).
      • original_goal is only present on personal campaigns; falls back to goalAmount when missing.
      • supporting_amount_raised is only present on fundraising events and team campaigns.

      The React-flavored twin is useCampaignAmounts in @playlive/react-query; use this raw function from Node warmers or other non-React contexts.

      Parameters

      Returns CampaignAmounts