Skip to content
Snippets Groups Projects
Commit 6d149d42 authored by lass's avatar lass
Browse files

Create files for internal api

parent b1e9a6cc
No related branches found
No related tags found
1 merge request!402Add check for if email exists in guest registration
Pipeline #189982 passed
...@@ -131,6 +131,15 @@ const StepPersonForm = forwardRef( ...@@ -131,6 +131,15 @@ const StepPersonForm = forwardRef(
useImperativeHandle(ref, () => ({ doSubmit })) useImperativeHandle(ref, () => ({ doSubmit }))
// const checkDuplicateEmail = (email: String) => {
// fetch(url til api).then((res) => {
// if (res.toString() === email) {
// return true
// }
// return false
// })
// }
const validateStartDateBeforeEndDate = (startDate: Date | undefined) => { const validateStartDateBeforeEndDate = (startDate: Date | undefined) => {
if (!startDate) { if (!startDate) {
return t('validation.startDateMustBeSet') return t('validation.startDateMustBeSet')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment