Skip to content

Commit

Permalink
fix: 데모데이 투표 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ddhelop committed Jun 26, 2024
1 parent 928bdb3 commit e5a9938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/DemoDayVote/DemoDayVote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function DemoDayVote() {
const response = await voteAction(teamId, token);
const data = await response.json();
if (response.ok) {
alert('투표가 완료되었습니다.');
router.push('/demo-day-vote/result');
} else if (response.status === 400) {
alert(data.message);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/actions/voteAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const LeaderVoteAction = async (memberId: number, token: string) => {
};

export const voteResult = async (token: string) => {
const response = await fetch(`https://hyeongjun.store/votes/teams`, {
const response = await fetch(`https://hyeongjun.store/votes/demo`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit e5a9938

Please sign in to comment.