Don't show user id no device is found
This commit is contained in:
@@ -162,7 +162,9 @@ class _MainViewState extends State<MainView> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
Text(
|
Text(
|
||||||
'ID: ${userInfo.id}',
|
_devices.isNotEmpty
|
||||||
|
? 'DMR ID: ${_devices.first.id}'
|
||||||
|
: 'No devices',
|
||||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
|
|||||||
Reference in New Issue
Block a user