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.
Extract the standard
{ totalAmount, currentAmount, goalAmount, originalGoalAmount, supportingAmount }scalar breakdown from any Tiltify campaign-shaped payload.null/undefinedinput returns every field as0.amount_raisedpresence togglescurrentAmount's source (see CampaignAmounts).original_goalis only present on personal campaigns; falls back togoalAmountwhen missing.supporting_amount_raisedis only present on fundraising events and team campaigns.The React-flavored twin is
useCampaignAmountsin@playlive/react-query; use this raw function from Node warmers or other non-React contexts.