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() {
|
async function register() {
|
||||||
try {
|
try {
|
||||||
|
let emailToSend = null;
|
||||||
|
if (email !== '') {
|
||||||
|
if (email.includes('@')) {
|
||||||
|
emailToSend = email;
|
||||||
|
}
|
||||||
|
}
|
||||||
response = (await RunnerService.runnerControllerPost({
|
response = (await RunnerService.runnerControllerPost({
|
||||||
firstname,
|
firstname,
|
||||||
lastname,
|
lastname,
|
||||||
email,
|
email: emailToSend,
|
||||||
group
|
group
|
||||||
})) as ResponseRunner;
|
})) as ResponseRunner;
|
||||||
showResult = true;
|
showResult = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user