Skip to content

Commit 7053b2f

Browse files
Updated Money raised
1 parent 11c2d04 commit 7053b2f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/components/MoneyRaised.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { isChromaticEnv } from '../utils/featureFlags'
66

77
// These must match the new tab page's numbers.
88
// Eventually call the API instead of hard-coding.
9-
const MONEY_RAISED = 1900000.0 // Also update in useMoneyRaised.js
10-
const MONEY_RAISED_UPDATE_TIME = moment('2025-03-11T21:00:00.000Z')
11-
const DOLLARS_PER_DAY_RATE = 380.0
9+
const MONEY_RAISED = 1980856.0 // Also update in useMoneyRaised.js
10+
const MONEY_RAISED_UPDATE_TIME = moment('2025-10-09T21:00:00.000Z')
11+
const DOLLARS_PER_DAY_RATE = 310.0
1212

1313
// todo: Turn this into a functional component so we can just reuse the hook here
1414
class MoneyRaised extends React.Component {

src/components/__tests__/MoneyRaised.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ afterEach(() => {
1212
jest.clearAllMocks()
1313
})
1414

15-
const MONEY_RAISED_HISTORICAL = 1900000.0
15+
const MONEY_RAISED_HISTORICAL = 1980856.0
1616

1717
describe('MoneyRaised', () => {
1818
it('renders without error', () => {

src/hooks/__tests__/useMoneyRaised.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('useMoneyRaised', () => {
2323
let moneyRaised
2424
renderHook(() => (moneyRaised = useMoneyRaised()))
2525
expect(setInterval).not.toHaveBeenCalled()
26-
expect(moneyRaised).toEqual(1900000)
26+
expect(moneyRaised).toEqual(1980856)
2727
})
2828

2929
it('advances in non-chromatic environment', () => {
@@ -32,6 +32,6 @@ describe('useMoneyRaised', () => {
3232
let moneyRaised
3333
renderHook(() => (moneyRaised = useMoneyRaised()))
3434
expect(setInterval).toHaveBeenCalled()
35-
expect(moneyRaised).not.toEqual(1900000)
35+
expect(moneyRaised).not.toEqual(1980856)
3636
})
3737
})

src/hooks/useMoneyRaised.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { isChromaticEnv } from '../utils/featureFlags'
44

55
// These must match the new tab page's numbers.
66
// Eventually call the API instead of hard-coding.
7-
const MONEY_RAISED = 1900000.0 // Also update in src/components/MoneyRaised.js
8-
const MONEY_RAISED_UPDATE_TIME = moment('2025-03-11T21:00:00.000Z')
9-
const DOLLARS_PER_DAY_RATE = 380.0
7+
const MONEY_RAISED = 1980856.0 // Also update in src/components/MoneyRaised.js
8+
const MONEY_RAISED_UPDATE_TIME = moment('2025-10-09T21:00:00.000Z')
9+
const DOLLARS_PER_DAY_RATE = 310.0
1010

1111
const useMoneyRaised = () => {
1212
const [moneyRaised, setMoneyRaised] = useState(null)

0 commit comments

Comments
 (0)