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

    Function extractCampaignFundraisingEventAmounts

    • Extract the standard "campaign amounts + fundraising-event pooled amounts" breakdown used by the fundraising-dashboard family of overlays.

      Rules (preserved from the overlay's original hook):

      • campaign.amount_raisedcampaignRaisedAmount (raw).
      • fundraisingEvent.total_amount_raisedfundraiserRaisedAmount, and updates overallRaisedAmount to max(prev, fundraiserRaised).
      • When the campaign has raised less than the event total, fundraiserRaisedAmount is capped to the campaign figure so a campaign-scoped progress bar can't overshoot its own contribution.
      • When no fundraising event is provided, overallRaisedAmount falls back to campaign.total_amount_raised.
      • fundraisingEvent.goal populates fundraiserGoalAmount and (when forceCampaignGoal !== true) overallGoalAmount.
      • campaign.goal populates overallGoalAmount as a fallback.

      The campaign-scoped scalars (goalAmount, currentAmount, originalGoalAmount) are delegated to extractCampaignAmounts for parity with useCampaignAmounts.

      The React-flavored twin is useCampaignFundraisingEventAmounts in @playlive/react-query.

      Parameters

      • campaign:
            | TiltifyCampaign
            | TiltifyTeamCampaign
            | TiltifyPersonalCampaign
            | null
            | undefined
      • fundraisingEvent: TiltifyFundraisingEvent | null | undefined
      • options: ExtractCampaignFundraisingEventAmountsOptions = {}

      Returns CampaignFundraisingEventAmounts