Handle empty user name while showing sharees info

This commit is contained in:
Neeraj Gupta 2022-02-08 00:33:22 +05:30
parent 4b9c0c03a0
commit be839c642b
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -283,7 +283,8 @@ class OutgoingCollectionItem extends StatelessWidget {
final sharees = <String>[];
for (int index = 0; index < c.collection.sharees.length; index++) {
final sharee = c.collection.sharees[index];
final name = sharee.name ?? sharee.email;
final name =
(sharee.name?.isNotEmpty ?? false) ? sharee.name : sharee.email;
if (index < 2) {
sharees.add(name);
} else {