File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Frontend/src/Components/Matching Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ const MatchPopup = ({ isOpen, isClose }) => {
20
20
const [ chosenProficiency , setChosenProficiency ] = useState ( "None" ) ;
21
21
const [ chosenTopic , setChosenTopic ] = useState ( "None" ) ;
22
22
23
+ const handleMatchCancellation = ( ) => {
24
+ setGoToLoadPopup ( false ) ;
25
+ setShowNotSuccessOutput ( true ) ;
26
+ } ;
27
+
23
28
const initiateMatching = ( ) => {
24
29
25
30
// Show the loading popup
@@ -40,11 +45,6 @@ const MatchPopup = ({ isOpen, isClose }) => {
40
45
topic : chosenTopic
41
46
} ;
42
47
43
- const handleMatchCancellation = ( ) => {
44
- setGoToLoadPopup ( false ) ;
45
- setShowNotSuccessOutput ( true ) ;
46
- } ;
47
-
48
48
// Make a post request to backend with the payload
49
49
const URL = `http://localhost:3004/home/${ userId } ` ;
50
50
axios . post ( URL , payload ) // replace /${props.userId} with how we access userId
You can’t perform that action at this time.
0 commit comments