feat: Remove tax forms from staff profile completion queries and related checks

This commit is contained in:
Achintha Isuru
2026-03-02 12:12:08 -05:00
parent 2ea5a25858
commit 78e99ac470
2 changed files with 1 additions and 11 deletions

View File

@@ -33,10 +33,7 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
final dc.GetStaffProfileCompletionStaff? staff = response.data.staff;
final List<dc.GetStaffProfileCompletionEmergencyContacts>
emergencyContacts = response.data.emergencyContacts;
final List<dc.GetStaffProfileCompletionTaxForms> taxForms =
response.data.taxForms;
return _isProfileComplete(staff, emergencyContacts, taxForms);
return _isProfileComplete(staff, emergencyContacts);
});
}
@@ -148,7 +145,6 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
bool _isProfileComplete(
dc.GetStaffProfileCompletionStaff? staff,
List<dc.GetStaffProfileCompletionEmergencyContacts> emergencyContacts,
List<dc.GetStaffProfileCompletionTaxForms> taxForms,
) {
if (staff == null) return false;
@@ -160,7 +156,6 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
return (staff.fullName.trim().isNotEmpty) &&
(staff.email?.trim().isNotEmpty ?? false) &&
emergencyContacts.isNotEmpty &&
taxForms.isNotEmpty &&
hasExperience;
}