Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscirmi committed Dec 9, 2023
1 parent e733af1 commit dfd2a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CheckoutForm/CheckoutForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function CheckoutForm({ handleName, handlePhone, handleEmail, handleCaptcha, sen
const sendEmail = () => {
if (name && phone && phone.length === 10 && parseInt(phone) && email && email.includes('@') && cart.length > 0 && verified) {
try {
emailjs.sendForm('service_7y665pr', 'template_0zjm6ef', form.current, process.env.REACT_APP_EMAILJS_PUBLIC_KEY)
emailjs.sendForm('service_7y665pr', 'template_0zjm6ef', form.current, import.meta.env.VITE_EMAILJS_PUBLIC_KEY)
.then((result) => {
console.log(result.text)
}, (error) => {
Expand Down

0 comments on commit dfd2a73

Please sign in to comment.