diff --git a/src/app/(protected)/my-page/characters/page.tsx b/src/app/(protected)/my-page/characters/page.tsx index 0e2038e1..efe0664e 100644 --- a/src/app/(protected)/my-page/characters/page.tsx +++ b/src/app/(protected)/my-page/characters/page.tsx @@ -24,7 +24,7 @@ const CharactersPageContent = () => { const tooltipWrapperRef = useRef(null); const { data: myPageData } = useQuery({ - queryKey: ["my-page"], + queryKey: ["myPage"], queryFn: async () => await fetch("/api/my-page").then((res) => res.json()), }); diff --git a/src/app/(protected)/my-page/page.tsx b/src/app/(protected)/my-page/page.tsx index 2dfc644e..fdd66e94 100644 --- a/src/app/(protected)/my-page/page.tsx +++ b/src/app/(protected)/my-page/page.tsx @@ -22,11 +22,10 @@ export default function MyPage() { const setUser = useUserStore((state) => state.setUser); const { data: myPageData, isFetching } = useQuery({ - queryKey: ["my-page"], + queryKey: ["myPage"], queryFn: async () => await fetch("/api/my-page").then((res) => res.json()), enabled: !!userData.memberId, staleTime: 1000 * 60 * 5, - gcTime: 1000 * 60 * 60, }); const handlePersonaClick = (id: number) => { diff --git a/src/app/(protected)/my-page/task-detail/[taskId]/ExpiredTaskDetailPage.tsx b/src/app/(protected)/my-page/task-detail/[taskId]/ExpiredTaskDetailPage.tsx index f8db17a9..b273704e 100644 --- a/src/app/(protected)/my-page/task-detail/[taskId]/ExpiredTaskDetailPage.tsx +++ b/src/app/(protected)/my-page/task-detail/[taskId]/ExpiredTaskDetailPage.tsx @@ -270,7 +270,7 @@ export default function ExpiredTaskDetailPage({ task, initialTask }: Props) { style={{ width: `${BAR.SLIDER_RADIUS * 2}px`, height: `${BAR.SLIDER_RADIUS * 2}px`, - left: `calc(${(task.concentration / 5) * 100}% - ${BAR.SLIDER_RADIUS * 2}px)`, + left: `calc(${task.concentration}% - ${BAR.SLIDER_RADIUS * 2}px)`, transition: "left 0.2s ease", }} /> diff --git a/src/app/(protected)/retrospection/[taskId]/RetrospectionPageClient.tsx b/src/app/(protected)/retrospection/[taskId]/RetrospectionPageClient.tsx index 96ca2410..3f8d0b01 100644 --- a/src/app/(protected)/retrospection/[taskId]/RetrospectionPageClient.tsx +++ b/src/app/(protected)/retrospection/[taskId]/RetrospectionPageClient.tsx @@ -50,7 +50,7 @@ export default function RetrospectionPageClient({ task }: Props) { createRetrospect({ taskId, retrospection }), onSuccess: () => { router.push("/retrospection/complete"); - queryClient.invalidateQueries({ queryKey: ["my-page", "tasks", "home"] }); + queryClient.invalidateQueries({ queryKey: ["tasks", "home", "myPage"] }); }, }); @@ -164,7 +164,7 @@ export default function RetrospectionPageClient({ task }: Props) { taskId: task.id, retrospection: { ...retrospectContent, - satisfaction: retrospectContent.satisfaction * 20, + satisfaction: (retrospectContent.satisfaction + 1) * 20, concentration: retrospectContent.concentration * 20, }, })