Skip to content

Commit

Permalink
fix: 연도가 +1 추가되어 api가 호출되는 이슈 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
saseungmin committed Jan 6, 2024
1 parent 9f75963 commit de0c683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/main/BirthSongResult/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function BirthSongResult({ birthDate }: Props) {
} = useQuery<FindSong, any>({
queryKey: ['birthSong', birthDate],
queryFn: () => fetchSongResult({
year: date.year() + 1,
year: date.year(),
month: date.month() + 1,
day: date.date(),
}),
Expand Down

0 comments on commit de0c683

Please sign in to comment.