mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-17 13:31:12 +00:00
refactor: console.log() cleanup
This commit is contained in:
parent
d1de6dc3a1
commit
101f8b1929
2 changed files with 1 additions and 5 deletions
|
|
@ -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 = '';
|
||||
|
|
|
|||
|
|
@ -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 = '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue