Skip to content

Commit

Permalink
changed message states
Browse files Browse the repository at this point in the history
  • Loading branch information
sanidhyy authored Jan 13, 2024
1 parent fc3af46 commit ee7dcda
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,11 @@ const Contact = () => {
},
import.meta.env.VITE_APP_EMAILJS_KEY
)
.then(() =>
toast.success("Thank You. I will get back to you as soon as possible.")
)
.then(() => toast.success("Thanks for contacting me."))
.catch((error) => {
// Error handle
console.log("[CONTACT_ERR]: ", error);
toast.error("Sorry. Something went wrong.");
toast.error("Something went wrong.");
})
.finally(() => {
setLoading(false);
Expand Down

0 comments on commit ee7dcda

Please sign in to comment.