Bucket a donation amount into a DonorLevel. Truncates
(Math.trunc) before comparison so 24.99 → grey, matching the
historical Number.parseFloat → truncation flow. Accepts strings
(Tiltify's amount.value is always a decimal string on the wire)
or numbers.
Bucket a donation amount into a DonorLevel. Truncates (
Math.trunc) before comparison so24.99 → grey, matching the historicalNumber.parseFloat→ truncation flow. Accepts strings (Tiltify'samount.valueis always a decimal string on the wire) or numbers.