feat: Remove redundant session handling in getUserSessionData method
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user