fix: registration without email
Some checks failed
Build latest image / build-container (push) Has been cancelled
Some checks failed
Build latest image / build-container (push) Has been cancelled
This commit is contained in:
parent
528b025e55
commit
b7f792c6f9
@ -32,10 +32,16 @@
|
||||
|
||||
async function register() {
|
||||
try {
|
||||
let emailToSend = null;
|
||||
if (email !== '') {
|
||||
if (email.includes('@')) {
|
||||
emailToSend = email;
|
||||
}
|
||||
}
|
||||
response = (await RunnerService.runnerControllerPost({
|
||||
firstname,
|
||||
lastname,
|
||||
email,
|
||||
email: emailToSend,
|
||||
group
|
||||
})) as ResponseRunner;
|
||||
showResult = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user