diff --git a/apps/forge/src/routes/_authenticated/_reponly/sign-in/actions/-components/SignInReasonInput.tsx b/apps/forge/src/routes/_authenticated/_reponly/sign-in/actions/-components/SignInReasonInput.tsx index de59448..30c14e6 100644 --- a/apps/forge/src/routes/_authenticated/_reponly/sign-in/actions/-components/SignInReasonInput.tsx +++ b/apps/forge/src/routes/_authenticated/_reponly/sign-in/actions/-components/SignInReasonInput.tsx @@ -26,6 +26,7 @@ export const SignInReasonInput: FlowStepComponent = ({ onSecondary, onPrimary }) const [highlightedIndex, setHighlightedIndex] = useState(-1); const [canContinue, setCanContinue] = useState(false); const hasSessionError = useSignInSessionField("session_errored") ?? false; + const user = useSignInSessionField("user"); const dispatch = useDispatch(); const activeLocation = useSelector((state: AppRootState) => state.signIn.active_location); @@ -35,7 +36,7 @@ export const SignInReasonInput: FlowStepComponent = ({ onSecondary, onPrimary }) isLoading: commonReasonsIsLoading, } = useQuery({ queryKey: ["getCommonReasons", activeLocation], - queryFn: () => getCommonReasons(activeLocation), + queryFn: () => getCommonReasons(activeLocation, user?.is_rep), }); useEffect(() => {