aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src/components/Profiling.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'jb-ui/src/components/Profiling.tsx')
-rw-r--r--jb-ui/src/components/Profiling.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/jb-ui/src/components/Profiling.tsx b/jb-ui/src/components/Profiling.tsx
index 23b8457..b834c9f 100644
--- a/jb-ui/src/components/Profiling.tsx
+++ b/jb-ui/src/components/Profiling.tsx
@@ -3,7 +3,7 @@ import { useGetMeQuery } from "@/models/authAPI";
import { ChevronRightIcon } from "lucide-react";
import { KeyboardEvent, MouseEvent, useEffect, useRef, useState } from "react";
-import { useAppDispatch, useAppSelector } from "@/hooks";
+import { useAppDispatch } from "@/hooks";
import { bpid } from "@/lib/utils";
import {
createColumnHelper,
@@ -47,7 +47,7 @@ const TextEntry = () => {
// const selectAnswer = useSelector(selectAnswerForQuestion(question));
const metadata = activeQuestion?._metadata;
const validation = activeQuestion?._validation;
- const { data: user, isLoading, isError } = useGetMeQuery();
+ const { data: user } = useGetMeQuery();
if (!metadata) return null;
if (!validation) return null;
@@ -113,7 +113,7 @@ export default function useKeyboardMode(rowModel: RowModel<UpkQuestionChoice>) {
const dispatch = useAppDispatch();
const activeQuestion = useSelector(selectActiveQuestion);
- const { data: user, isLoading, isError } = useGetMeQuery();
+ const { data: user } = useGetMeQuery();
const keyboardSelectionIdxRef = useRef(0);
@@ -514,7 +514,7 @@ const ProfilingQuestionSubmitButton = () => {
const activeQuestion = useSelector(selectActiveQuestion);
const activeQuestionValidation = useSelector(selectActiveQuestionValidation);
- const { data: user, isLoading, isError } = useGetMeQuery();
+ const { data: user } = useGetMeQuery();
const handleOnClick = () => {
if (!activeQuestion) return;
@@ -759,7 +759,7 @@ const Profiling = () => {
const [showProfiling, setShowProfiling] = useState(false);
const dispatch = useAppDispatch();
- const { data: user, isLoading, isError } = useGetMeQuery();
+ const { data: user } = useGetMeQuery();
useEffect(() => {
if (!user?.product_user_id) return;