Skip to content

Commit

Permalink
feat:team-anchor update conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
G4EVA-dev committed Jul 30, 2024
1 parent 16b75bb commit 2cff952
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
API_URL=https://your-teams-backend-probe-url.com
API_URL=https://deployment.api-python.boilerplate.hng.tech/api/v1/waitlists/
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
AUTH_SECRET=
21 changes: 9 additions & 12 deletions src/components/waitList/WaitListForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,16 @@ const WaitlistForm: React.FC = () => {
} else {
setErrors({});
try {
const response = await fetch(
process.env.NEXT_PUBLIC_API_URL as string,
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
full_name: formData.full_name,
email: formData.email,
}),
const response = await fetch(process.env.API_URL as string, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
);
body: JSON.stringify({
full_name: formData.full_name,
email: formData.email,
}),
});

if (!response.ok) {
const errorData = await response.json();
Expand Down

0 comments on commit 2cff952

Please sign in to comment.