diff --git a/lib/pages/liked_users_page.dart b/lib/pages/liked_users_page.dart index d6ec45a..8fa0849 100644 --- a/lib/pages/liked_users_page.dart +++ b/lib/pages/liked_users_page.dart @@ -338,6 +338,13 @@ class LikedUsersPageState extends State { } }, onShowChat: () { + Map userMap = + user.data() as Map; + String? profilePic = + userMap.containsKey(Constants.dbFieldUsersProfilePic) + ? user[Constants.dbFieldUsersProfilePic] + : null; + Navigator.push( context, MaterialPageRoute( @@ -345,7 +352,7 @@ class LikedUsersPageState extends State { receiverEmail: user[Constants.dbFieldUsersEmail], receiverID: user[Constants.dbFieldUsersID], chatTitle: user[Constants.dbFieldUsersName], - profileImageUrl: user[Constants.dbFieldUsersProfilePic], + profileImageUrl: profilePic, ), ), );