|
|
@@ -317,9 +317,9 @@ const mapWorkingDays = () => {
|
|
|
return mapped;
|
|
|
};
|
|
|
|
|
|
-const hasWorkingDaySelected = () => {
|
|
|
- return mapWorkingDays().length > 0;
|
|
|
-};
|
|
|
+// const hasWorkingDaySelected = () => {
|
|
|
+// return mapWorkingDays().length > 0;
|
|
|
+// };
|
|
|
|
|
|
const validateCurrentStep = async () => {
|
|
|
const isValid = await loginForm.value?.validate();
|
|
|
@@ -329,9 +329,9 @@ const validateCurrentStep = async () => {
|
|
|
}
|
|
|
|
|
|
if(steps.value === 4) {
|
|
|
- const hasSelfie = !!stepFourForm.value.selfie_base64;
|
|
|
- const hasDocumentFront = !!stepFourForm.value.document_front_base64;
|
|
|
- const hasDocumentBack = !!stepFourForm.value.document_back_base64;
|
|
|
+ const hasSelfie = !!stepFourForm.value.selfie;
|
|
|
+ const hasDocumentFront = !!stepFourForm.value.document_front;
|
|
|
+ const hasDocumentBack = !!stepFourForm.value.document_back;
|
|
|
|
|
|
if (!hasSelfie || !hasDocumentFront || !hasDocumentBack) {
|
|
|
$q.notify({
|
|
|
@@ -342,14 +342,6 @@ const validateCurrentStep = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (steps.value === 6 && !hasWorkingDaySelected()) {
|
|
|
- $q.notify({
|
|
|
- type: 'negative',
|
|
|
- message: t('provider.login.steps.step_6.select_at_least_one'),
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
return true;
|
|
|
};
|
|
|
|