From de9c51998c02b856a53d253425cf85dde30ec0cc Mon Sep 17 00:00:00 2001 From: mohammad Date: Thu, 9 Jan 2025 16:43:09 +0300 Subject: [PATCH] changes --- lib/features/app_layout/bloc/home_cubit.dart | 1 + lib/services/api/profile_api.dart | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/features/app_layout/bloc/home_cubit.dart b/lib/features/app_layout/bloc/home_cubit.dart index 6a30586..abd7066 100644 --- a/lib/features/app_layout/bloc/home_cubit.dart +++ b/lib/features/app_layout/bloc/home_cubit.dart @@ -303,6 +303,7 @@ class HomeCubit extends Cubit { fetchUnitsByUserId(); } emitSafe(GetSpacesSuccess(spaces!)); + return res['success']; } on DioException catch (e) { final errorMessage = e.response?.data['error']['message']; emitSafe(ActivationError(errMessage: errorMessage)); diff --git a/lib/services/api/profile_api.dart b/lib/services/api/profile_api.dart index fcc5f11..663cde4 100644 --- a/lib/services/api/profile_api.dart +++ b/lib/services/api/profile_api.dart @@ -90,7 +90,6 @@ class ProfileApi { path: ApiEndpoints.getUser.replaceAll('{userUuid}', userId!), showServerMessage: true, expectedResponseModel: (json) { - log('user json =$json'); return UserModel.fromJson(json); }); return response;