diff --git a/src/components/MyPage/BadgeBoard.tsx b/src/components/MyPage/BadgeBoard.tsx
index 0fa00f1..254494f 100644
--- a/src/components/MyPage/BadgeBoard.tsx
+++ b/src/components/MyPage/BadgeBoard.tsx
@@ -125,7 +125,7 @@ const BadgeBoard = () => {
챌린지 달성 뱃지
- 00개의 챌린지를 성공적으로 마쳤어요. 성장하고 계시는군요!
+ 14개의 챌린지를 성공적으로 마쳤어요. 성장하고 계시는군요!
diff --git a/src/components/MyPage/CanaryAuth.tsx b/src/components/MyPage/CanaryAuth.tsx
index 430e34a..45f26cf 100644
--- a/src/components/MyPage/CanaryAuth.tsx
+++ b/src/components/MyPage/CanaryAuth.tsx
@@ -5,12 +5,17 @@ import { getCanaryStatus } from "../../apis/canary";
import useAuthStore from "../../storage/useAuthStore";
import { useQuery } from "@tanstack/react-query";
-const CanaryAuth = ({ onClick }: { onClick: () => void }) => {
+type CanaryStatus = {
+ applyStatus: number;
+ onClick: () => void;
+};
+
+const CanaryAuth = ({
+ applyStatus,
+ onClick,
+ isLoading,
+}: CanaryStatus & { isLoading: boolean }) => {
const { userData, accessToken } = useAuthStore.getState();
- const { data: applyStatus, isLoading } = useQuery({
- queryKey: ["getCanaryStatus", userData.id, accessToken],
- queryFn: () => getCanaryStatus(userData.id!, accessToken!),
- });
if (isLoading) return ;
@@ -23,7 +28,7 @@ const CanaryAuth = ({ onClick }: { onClick: () => void }) => {
멘토링을 신청할 수 있어요.
- {applyStatus.data === 0 && (
+ {applyStatus === 0 && (