fix-errors

This commit is contained in:
mso7nueh
2026-06-01 12:42:22 +03:00
parent af3b40d5f2
commit 85d32dd3a1
8 changed files with 82 additions and 18 deletions

View File

@@ -12,7 +12,9 @@ class FeedProfileCubit extends Cubit<ProfileState> {
Future<void> getProfile() async {
try {
final profile = await profileRepository.getMyProfile();
emit(state.copyWith(profile: profile));
if (!isClosed) {
emit(state.copyWith(profile: profile));
}
} catch (e, stackTrace) {
await reportFrom(e, stackTrace, this);
log(e.toString(), stackTrace: stackTrace);