(evt: React.FormEvent)
| 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 |
nothing calls this directly
no test coverage detected