Skip to content
Snippets Groups Projects
Commit 82d948f0 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Redo submit logic

parent f656517f
No related branches found
No related tags found
1 merge request!16WIP: Feat React frontend
......@@ -46,14 +46,17 @@ function Main(props) {
e.stopPropagation();
} else {
showModal();
if (DEBUG) console.log('Modal showed')
socketRef.current.emit('request', {
let message = {
'username': blazerid.current.value,
'firstName': firstName.current.value,
'lastName': lastName.current.value,
'reason': reason.current.value,
'aup': aup
});
};
if (DEBUG) console.log('Modal showed')
if (DEBUG) console.log('Message:')
if (DEBUG) console.log(message)
socketRef.current.emit('request', message);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment