Skip to content

Commit

Permalink
update minimum to 80
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoalzate committed May 17, 2024
1 parent 5473a97 commit fa1083a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/berlin/src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const INITIAL_HEARTS = 20;
export const INITIAL_HEARTS = 80;
export const FIVE_MINUTES_IN_SECONDS = 300;
3 changes: 2 additions & 1 deletion packages/berlin/src/utils/voting.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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 = (
Expand Down

0 comments on commit fa1083a

Please sign in to comment.