Skip to content

Commit 81c7e8d

Browse files
committed
Update MatchPopup.jsx
1 parent 5bb4e24 commit 81c7e8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Frontend/src/Components/Matching/MatchPopup.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ const MatchPopup = ({ isOpen, isClose }) => {
2020
const [chosenProficiency, setChosenProficiency] = useState("None");
2121
const [chosenTopic, setChosenTopic] = useState("None");
2222

23+
const handleMatchCancellation = () => {
24+
setGoToLoadPopup(false);
25+
setShowNotSuccessOutput(true);
26+
};
27+
2328
const initiateMatching = () => {
2429

2530
// Show the loading popup
@@ -40,11 +45,6 @@ const MatchPopup = ({ isOpen, isClose }) => {
4045
topic: chosenTopic
4146
};
4247

43-
const handleMatchCancellation = () => {
44-
setGoToLoadPopup(false);
45-
setShowNotSuccessOutput(true);
46-
};
47-
4848
// Make a post request to backend with the payload
4949
const URL = `http://localhost:3004/home/${userId}`;
5050
axios.post(URL, payload) // replace /${props.userId} with how we access userId

0 commit comments

Comments
 (0)