fix: update email recipient logic in renderCompanyOfferEmail function

This commit is contained in:
Danel Kungla
2025-08-07 18:04:44 +03:00
parent 2850478443
commit aba4596edd
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
# These values are only used when running the app in development mode. # These values are only used when running the app in development mode.
# SITE # SITE
NEXT_PUBLIC_SITE_URL=https://localhost:3000 NEXT_PUBLIC_SITE_URL=http://localhost:3000
# SUPABASE DEVELOPMENT # SUPABASE DEVELOPMENT

View File

@@ -34,7 +34,7 @@ export async function renderCompanyOfferEmail({
namespace, namespace,
}); });
const to = process.env.CONTACT_EMAIL || ''; const to = companyData.email || '';
const previewText = t(`${namespace}:previewText`, { const previewText = t(`${namespace}:previewText`, {
companyName: companyData.companyName, companyName: companyData.companyName,