MCPcopy Index your code
hub / github.com/github/docs / submit

Function submit

components/page-footer/Survey.tsx:67–74  ·  view source on GitHub ↗
(evt: React.FormEvent)

Source from the content-addressed store, hash-verified

65 }
66
67 function submit(evt: React.FormEvent) {
68 evt.preventDefault()
69 trackEvent(getFormData())
70 if (!isEmailError) {
71 setState(ViewState.END)
72 setIsEmailError(false)
73 }
74 }
75
76 function getFormData() {
77 if (!formRef.current) return

Callers

nothing calls this directly

Calls 2

trackEventFunction · 0.85
getFormDataFunction · 0.85

Tested by

no test coverage detected