Handle empty user name while showing sharees info
This commit is contained in:
parent
4b9c0c03a0
commit
be839c642b
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue