Skip to content

Commit 182031f

Browse files
committed
Merge branch 'develop'
2 parents 8ef63b7 + 8f6ed6f commit 182031f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/pages/Volunteer/Application.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ export const VolunteerApplication = () => {
1717
initTheme.get('theme') === 'dark' ? THEME.DARK : THEME.LIGHT,
1818
);
1919

20-
const { data, isLoading, isError } = useGetVolunteer();
20+
const { data, isLoading, isError, error } = useGetVolunteer();
2121

2222
const [applications, setApplications] = useState<any[]>([]);
2323

2424
useEffect(() => {
2525
if (isLoading) return;
2626
if (isError) {
27-
console.error('봉사 데이터 불러오기 실패함, ', isError);
27+
console.error('봉사 데이터 불러오기 실패함, ', error);
2828
return;
2929
}
3030
if (data) {
3131
console.log('연동 성공! 데이터:', data);
3232
setApplications(data.volunteers || []);
3333
}
34-
}, [data, isLoading, isError]);
34+
}, [data, isLoading, isError, error]);
3535

3636
const removeApplication = (volunteerId: string) => {
3737
setApplications((prevApplications) =>

src/pages/Volunteer/History.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ export const VolunteerHistory = () => {
1919
initTheme.get('theme') === 'dark' ? THEME.DARK : THEME.LIGHT,
2020
);
2121

22-
const { data, isLoading, isError } = useGetMyVolunteers();
22+
const { data, isLoading, isError, error } = useGetMyVolunteers();
2323

2424
useEffect(() => {
2525
if (isLoading) return;
2626
if (isError) {
27-
console.error('봉사 데이터 불러오기 실패함, ', isError);
27+
console.error('봉사 데이터 불러오기 실패함, ', error);
2828
return;
2929
}
3030
if (data) {
3131
console.log('연동 성공! 데이터:', data);
3232
setHistories(data.volunteer_applications || []);
3333
}
34-
}, [data, isLoading, isError]);
34+
}, [data, isLoading, isError, error]);
3535

3636
return (
3737
<Wrapper>

0 commit comments

Comments
 (0)