6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit e281d088

AuthorEdmir Suljic<esu@dwarf.dk>
Date2025-04-15 12:52:41 +0200
Simplified method

Changed files

comwell_key_app/lib/utils/share_button_utils.dart | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Diff

diff --git a/comwell_key_app/lib/utils/share_button_utils.dart b/comwell_key_app/lib/utils/share_button_utils.dart
index ecf82875..e3b75a51 100644
--- a/comwell_key_app/lib/utils/share_button_utils.dart
+++ b/comwell_key_app/lib/utils/share_button_utils.dart
@@ -1,9 +1,6 @@
import 'package:comwell_key_app/overview/models/guest.dart';
Iterable<String> generateInitials(Iterable<Guest> guests) {
- final guestInitials = guests
- .map((guest) => guest.name.split(' ').map((name) => name[0]).join(''))
- .toList();
-
- return [...guestInitials];
+ return guests
+ .map((guest) => guest.name.split(' ').map((name) => name[0]).join(''));
}