forked from eatvio/eatvio_app
fix-errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user