Fix(bugs):
Can't logout ui display when user doesn't has device
This commit is contained in:
@@ -63,7 +63,7 @@ class _DeviceLogsScreenState extends State<DeviceLogsScreen> {
|
||||
body: StreamBuilder<List<Device>>(
|
||||
stream: deviceLogsBloc.streamAllDevices,
|
||||
builder: (context, allDevicesSnapshot) {
|
||||
if (allDevicesSnapshot.data?[0].thingId == null) {
|
||||
if (allDevicesSnapshot.data == null) {
|
||||
deviceLogsBloc.getAllDevices();
|
||||
return const Center(
|
||||
child: CircularProgressIndicator(),
|
||||
|
||||
Reference in New Issue
Block a user