mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fixes for go bolt webginar page (#43180)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES/NO ## What kind of change does this PR introduce? Bug fix, feature, docs update, ... ## What is the current behavior? Please link any relevant issues here. ## What is the new behavior? Feel free to include screenshots if it includes visual changes. ## Additional context Add any other context or screenshots. Co-authored-by: Jordi Enric <37541088+jordienr@users.noreply.github.com>
This commit is contained in:
1 parent
a9a6357227
commit
5d409bfd48
2 files changed
+8
-2
No files matched your search
@@ -81,6 +81,7 @@ const page: GoPageInput = {
|
||||
},
|
||||
{
|
||||
type: 'form',
|
||||
id: 'form',
|
||||
title: 'Tell us how we can help',
|
||||
description: 'Share your details and we’ll follow up with resources or a conversation.',
|
||||
fields: [
|
||||
@@ -133,7 +134,7 @@ const page: GoPageInput = {
|
||||
first_name: 'firstname',
|
||||
last_name: 'lastname',
|
||||
email_address: 'email',
|
||||
company_name: 'company',
|
||||
company_name: 'name',
|
||||
message: 'what_are_you_currently_working_on_',
|
||||
},
|
||||
consent:
|
||||
|
||||
@@ -66,7 +66,12 @@ export async function submitFormAction(
|
||||
try {
|
||||
// Detect the email value from common field names
|
||||
const email =
|
||||
values['email'] ?? values['workEmail'] ?? values['work_email'] ?? values['emailAddress'] ?? ''
|
||||
values['email'] ??
|
||||
values['workEmail'] ??
|
||||
values['work_email'] ??
|
||||
values['emailAddress'] ??
|
||||
values['email_address'] ??
|
||||
''
|
||||
|
||||
if (!email) {
|
||||
debug('Submission rejected: no email field found in values')
|
||||
|
||||
Reference in new issue
Block a user