Implemented Ac functionality, and bug fixes

This commit is contained in:
Abdullah Alassaf
2024-05-20 02:40:50 +03:00
parent 0f75c3def1
commit 4257d69768
27 changed files with 733 additions and 451 deletions

View File

@ -153,7 +153,7 @@ class HomeCubit extends Cubit<HomeState> {
emitSafe(GetSpaceRoomsError(failure.toString()));
return;
}
if (space.rooms != null) {
if (space.rooms != null && space.rooms!.isNotEmpty) {
emitSafe(GetSpaceRoomsSuccess(space.rooms!));
} else {
emitSafe(GetSpaceRoomsError("No rooms found"));