Skip to content

Commit

Permalink
Fix showing empty location
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodoering committed Jul 8, 2023
1 parent 41af6b7 commit 928b169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/pages/user/widgets/user_page_metadata.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class UserPageMetadata extends StatelessWidget {
)!;

final children = [
if (data.user.location != null)
if (data.user.location != null && data.user.location!.isNotEmpty)
_Entry(
icon: const Icon(CupertinoIcons.map_pin_ellipse),
child: Text(data.user.location!),
Expand Down

0 comments on commit 928b169

Please sign in to comment.