Skip to content

Commit

Permalink
remove development blockers
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbarnum4 committed Mar 29, 2024
1 parent 9b01010 commit 143a583
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Forms/Form.Workforce.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ const WorkforceForm = ({ sessionDates, referredBy }: WorkforceFormProps) => {
});

try {
const { data } = true
? { data: { url: 'https://ospk.org/dvKqYqEJBb' } }
: await axios.post('/api/infoSession/user', body);
const { data } = await axios.post('/api/infoSession/user', body);

const textMessage = currentValues.smsOptIn === 'true' ? ' and text message' : '';

Expand All @@ -84,7 +82,7 @@ const WorkforceForm = ({ sessionDates, referredBy }: WorkforceFormProps) => {
}

const sessionDate = currentValues.sessionDate.name;
console.log(currentValues.sessionDate.value);

form.notifySuccess({
msg: `You have successfully registered for an info session on ${sessionDate}. You will receive an email ${textMessage} shortly.`,
});
Expand Down Expand Up @@ -125,7 +123,7 @@ const WorkforceForm = ({ sessionDates, referredBy }: WorkforceFormProps) => {

const closeDetails = () => {
setRenderUrl(null);
// form.clear(); // TODO: Add back
form.clear();
};

useEffect(() => {
Expand Down

0 comments on commit 143a583

Please sign in to comment.