Skip to content

Commit

Permalink
make success toast dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbarnum4 committed Mar 29, 2024
1 parent 63426e5 commit 41df330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Forms/Form.Workforce.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ const WorkforceForm = ({ sessionDates, referredBy }: WorkforceFormProps) => {

try {
const { data } = await axios.post('/api/infoSession/user', body);

const textMessage = currentValues.smsOptIn === 'true' ? ' and text message' : '';
form.notifySuccess({
msg: 'Info session registration for submitted. You should receive an email and text message shortly.',
msg: `Info session registration for submitted. You will receive an email${textMessage} shortly.`,
});

setRenderUrl(data.url);
Expand Down

0 comments on commit 41df330

Please sign in to comment.