Skip to content

Commit

Permalink
better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-lab12 committed Nov 7, 2023
1 parent ac12e9c commit 8e1161b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Modal/ModalForm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@
</style>

<script>
const API_URL = import.meta.env.PUBLIC_API_URL + "/user";
console.log(import.meta.env.PUBLIC_API_URL);
const API_URL = import.meta.env.PUBLIC_API_MESSAGE_URL;

const sendUserMessage = async (data) => {
await fetch(API_URL, {
return fetch(API_URL, {
method: "POST",
body: JSON.stringify(data),
headers: {
Expand Down

0 comments on commit 8e1161b

Please sign in to comment.