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
No related merge requests found
Pipeline #5715 failed with stage
...@@ -46,14 +46,17 @@ function Main(props) { ...@@ -46,14 +46,17 @@ function Main(props) {
e.stopPropagation(); e.stopPropagation();
} else { } else {
showModal(); showModal();
if (DEBUG) console.log('Modal showed') let message = {
socketRef.current.emit('request', {
'username': blazerid.current.value, 'username': blazerid.current.value,
'firstName': firstName.current.value, 'firstName': firstName.current.value,
'lastName': lastName.current.value, 'lastName': lastName.current.value,
'reason': reason.current.value, 'reason': reason.current.value,
'aup': aup '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