refactor: console.log() cleanup

This commit is contained in:
Sebastian Pravda 2023-02-24 15:09:07 +01:00
parent d1de6dc3a1
commit 101f8b1929
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57
2 changed files with 1 additions and 5 deletions

View file

@ -10,7 +10,6 @@
let value: string = '';
console.log(valueLeft, valueRight);
if (valueLeft && valueRight) {
value = `${valueLeft} ${valueRight}`;
} else if (valueLeft) {
@ -23,7 +22,6 @@
if (parsed.length >= 2) {
valueLeft = parsed.slice(0, parsed.length - 1).join(' ');
valueRight = parsed[parsed.length - 1];
console.log(valueLeft, valueRight);
} else {
valueLeft = parsed[0];
valueRight = '';

View file

@ -290,7 +290,6 @@
values.candidate.zip
];
values.candidate.address = addressArray.map((x) => x.replaceAll(',', '').trim()).join(',');
console.log(values.candidate.address)
// @ts-ignore
delete values.candidate.street;
// @ts-ignore
@ -306,7 +305,7 @@
} catch (e) {
values = oldValues;
$form = oldValues;
console.error('error while submitting data: ' + e);
pushErrorText('Neznámá chyba při odesílání dat.');
}
}
};
@ -455,7 +454,6 @@
let lastCitizenshipSelected = $form.candidate.citizenship;
$: if ($form.candidate.citizenship !== lastCitizenshipSelected) {
console.log('citizenship changed');
lastCitizenshipSelected = $form.candidate.citizenship;
$form.candidate.birthdate = '';
$form.candidate.sex = '';