MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / formattedAmountLabel

Function formattedAmountLabel

client/src/components/Donation/utils.ts:6–7  ·  view source on GitHub ↗
(amount: number)

Source from the content-addressed store, hash-verified

4export const convertToTimeContributed = (amount: number) =>
5 numToCommas((amount / CENTS_IN_DOLLAR) * EDUCATION_HOURS_PER_DOLLAR);
6export const formattedAmountLabel = (amount: number) =>
7 numToCommas(amount / CENTS_IN_DOLLAR);

Callers 2

SelectionTabsFunction · 0.90
renderButtonGroupMethod · 0.90

Calls 1

numToCommasFunction · 0.85

Tested by

no test coverage detected