Skip to content

Commit

Permalink
fix: search params fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimvasilevskiy committed Mar 24, 2023
1 parent 40d10a8 commit 551c7e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Forms/ContactUsForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
Image,
Textarea,
} from "@chakra-ui/core";
import { useSearchParams } from "react-router-dom";
import { CongratulationsModal } from "../Modals";
import { FONTS, INPUT_STYLES } from "../../theme";
import { DEPARTMENT, DEPARTMENT_OPTIONS } from "../../constants/constants";
Expand All @@ -23,7 +22,7 @@ import popoverBlack from "../../images/popover-black.svg";
export const ContactUsForm = () => {
const [isCongratulationsModalOpen, setIsCongratulationsModalOpen] = useState(false);
const [dropdownOption, setDropdownOption] = useState({});
const [searchParams] = useSearchParams();
const searchParams = new URLSearchParams(window.location.search);

useEffect(() => {
const queryValue = searchParams.get("department");
Expand Down

0 comments on commit 551c7e3

Please sign in to comment.