fundraisingEvent.total_amount_raised →
fundraiserRaisedAmount, 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.
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_raised→campaignRaisedAmount(raw).fundraisingEvent.total_amount_raised→fundraiserRaisedAmount, and updatesoverallRaisedAmounttomax(prev, fundraiserRaised).fundraiserRaisedAmountis capped to the campaign figure so a campaign-scoped progress bar can't overshoot its own contribution.overallRaisedAmountfalls back tocampaign.total_amount_raised.fundraisingEvent.goalpopulatesfundraiserGoalAmountand (whenforceCampaignGoal !== true)overallGoalAmount.campaign.goalpopulatesoverallGoalAmountas a fallback.The campaign-scoped scalars (
goalAmount,currentAmount,originalGoalAmount) are delegated to extractCampaignAmounts for parity withuseCampaignAmounts.The React-flavored twin is
useCampaignFundraisingEventAmountsin@playlive/react-query.