feat: Remove redundant session handling in getUserSessionData method

This commit is contained in:
Achintha Isuru
2026-03-01 19:34:14 -05:00
parent 89f078054d
commit 2596249cd2

View File

@@ -99,16 +99,6 @@ class HomeRepositoryImpl implements HomeRepositoryInterface {
@override
Future<UserSessionData> getUserSessionData() async {
final dc.ClientSession? session = dc.ClientSessionStore.instance.session;
final dc.ClientBusinessSession? business = session?.business;
if (business != null) {
return UserSessionData(
businessName: business.businessName,
photoUrl: business.companyLogoUrl,
);
}
return await _service.run(() async {
final String businessId = await _service.getBusinessId();
final QueryResult<dc.GetBusinessByIdData, dc.GetBusinessByIdVariables>