(parts: string[])
| 79 | }; |
| 80 | |
| 81 | const submitCode = (parts: string[]) => { |
| 82 | const code = parts.join(""); |
| 83 | if (!email || code.length !== 6) return; |
| 84 | onSignin( |
| 85 | create(LoginRequestSchema, { |
| 86 | email, |
| 87 | emailCode: code, |
| 88 | workspace: resolveWorkspaceName(), |
| 89 | }) |
| 90 | ); |
| 91 | }; |
| 92 | |
| 93 | const handleSubmit = async (e?: React.FormEvent) => { |
| 94 | if (e) e.preventDefault(); |
no test coverage detected