fix: remove unneccesary cast due to "," which throws an error

This commit is contained in:
Jacques 2025-04-22 14:41:24 +02:00
parent 74823e4c1e
commit b2f0e1318b

View file

@ -193,8 +193,7 @@ class _Body extends StatelessWidget {
); );
var targetUser = user ?? var targetUser = user ??
( (chat != null
chat != null
? UserModel( ? UserModel(
id: UniqueKey().toString(), id: UniqueKey().toString(),
firstName: chat?.chatName, firstName: chat?.chatName,
@ -203,8 +202,7 @@ class _Body extends StatelessWidget {
: UserModel( : UserModel(
id: UniqueKey().toString(), id: UniqueKey().toString(),
firstName: options.translations.groupNameEmpty, firstName: options.translations.groupNameEmpty,
), ));
) as UserModel;
return Stack( return Stack(
children: [ children: [