Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tcaiger committed Aug 22, 2024
1 parent c720b24 commit 185a4fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ export const useSurveyResponseData = () => {
};
};

interface LocationStateProps {
from?: string | undefined;
}

export const useSubmitSurveyResponse = ({ from }: LocationStateProps) => {
export const useSubmitSurveyResponse = (from: string | undefined) => {
const queryClient = useQueryClient();
const navigate = useNavigate();
const params = useParams();
Expand Down
2 changes: 1 addition & 1 deletion packages/datatrak-web/src/features/Survey/SurveyLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const SurveyLayout = () => {

const { handleSubmit, getValues } = useFormContext();
const { mutate: submitSurveyResponse, isLoading: isSubmittingSurveyResponse } =
useSubmitSurveyResponse({ from });
useSubmitSurveyResponse(from);
const { mutate: resubmitSurveyResponse, isLoading: isResubmittingSurveyResponse } =
useResubmitSurveyResponse();
const { back, next } = useSurveyRouting(numberOfScreens);
Expand Down

0 comments on commit 185a4fb

Please sign in to comment.