the user name of the employee is being displayed

This commit is contained in:
Daniah Ayad Al-sultani
2026-02-17 16:51:13 +03:00
parent bb6f3931ce
commit 5117fbdabe
4 changed files with 63 additions and 8 deletions

View File

@@ -41,6 +41,9 @@ class AuthRepositoryImpl implements AuthRepository {
if (responseDto.data?.employeeId != null) {
print("AUTH_REPO: Caching EmployeeId: ${responseDto.data!.employeeId}");
await localDataSource.cacheEmployeeId(responseDto.data!.employeeId!);
if (responseDto.data!.fullName != null) {
await localDataSource.cacheFullName(responseDto.data!.fullName!);
}
} else {
print("AUTH_REPO: EmployeeId is NULL in response!");
}