fix: update email recipient logic in renderCompanyOfferEmail function
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# These values are only used when running the app in development mode.
|
||||
|
||||
# SITE
|
||||
NEXT_PUBLIC_SITE_URL=https://localhost:3000
|
||||
NEXT_PUBLIC_SITE_URL=http://localhost:3000
|
||||
|
||||
# SUPABASE DEVELOPMENT
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export async function renderCompanyOfferEmail({
|
||||
namespace,
|
||||
});
|
||||
|
||||
const to = process.env.CONTACT_EMAIL || '';
|
||||
const to = companyData.email || '';
|
||||
|
||||
const previewText = t(`${namespace}:previewText`, {
|
||||
companyName: companyData.companyName,
|
||||
|
||||
Reference in New Issue
Block a user