diff --git a/packages/berlin/src/utils/constants.ts b/packages/berlin/src/utils/constants.ts index 6a3d2cba..ee2e23e2 100644 --- a/packages/berlin/src/utils/constants.ts +++ b/packages/berlin/src/utils/constants.ts @@ -1,2 +1,2 @@ -export const INITIAL_HEARTS = 20; +export const INITIAL_HEARTS = 80; export const FIVE_MINUTES_IN_SECONDS = 300; diff --git a/packages/berlin/src/utils/voting.ts b/packages/berlin/src/utils/voting.ts index 7fa878ec..8e97b8f3 100644 --- a/packages/berlin/src/utils/voting.ts +++ b/packages/berlin/src/utils/voting.ts @@ -1,6 +1,7 @@ import { GetUserVotesResponse, PostVotesRequest } from 'api'; import { ResponseUserVotesType } from '../types/CycleType'; import toast from 'react-hot-toast'; +import { INITIAL_HEARTS } from './constants'; export const handleLocalVote = ( optionId: string, @@ -46,7 +47,7 @@ export const handleAvailableHearts = (availableHearts: number, type: 'vote' | 'u return Math.max(0, availableHearts - 1); } - return Math.min(20, availableHearts + 1); + return Math.min(INITIAL_HEARTS, availableHearts + 1); }; export const handleSaveVotes = (