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,18 +193,16 @@ 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, imageUrl: chat?.imageUrl,
imageUrl: chat?.imageUrl, )
) : UserModel(
: UserModel( id: UniqueKey().toString(),
id: UniqueKey().toString(), firstName: options.translations.groupNameEmpty,
firstName: options.translations.groupNameEmpty, ));
),
) as UserModel;
return Stack( return Stack(
children: [ children: [