fix: Missing null check
This commit is contained in:
parent
86998374b9
commit
619d03a37b
1 changed files with 3 additions and 2 deletions
|
|
@ -105,8 +105,9 @@ class UserDeviceListItem extends StatelessWidget {
|
|||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Spacer(),
|
||||
Text(DateTime.fromMillisecondsSinceEpoch(userDevice.lastSeenTs)
|
||||
.localizedTimeShort(context)),
|
||||
if (userDevice.lastSeenTs != null)
|
||||
Text(DateTime.fromMillisecondsSinceEpoch(userDevice.lastSeenTs)
|
||||
.localizedTimeShort(context)),
|
||||
],
|
||||
),
|
||||
subtitle: Row(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue