Skip to content

Commit

Permalink
fixed profile page bug
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkrishna0512 committed Jul 25, 2022
1 parent ebaa6ac commit b8af4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/profile_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class _ProfilePageState extends State<ProfilePage> {
Future<Map<String, dynamic>> _getUserData() async {
Map<String, dynamic> userData = <String, dynamic>{};
// get data where 'email' field is = email argument field
await usersCollection.where('email', isEqualTo: widget.email).get().then(
await usersCollection.where('email', isEqualTo: currUserEmail).get().then(
(res) {
print("userData query successful");
userData = res.docs.first.data();
Expand Down

0 comments on commit b8af4f3

Please sign in to comment.