Skip to content

Commit

Permalink
update Report.js to use current user email instead of current user flag
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetlath committed Jul 15, 2022
1 parent 6fc8e92 commit a6fbd64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Onyx.connect({
let myPersonalDetails;
Onyx.connect({
key: ONYXKEYS.PERSONAL_DETAILS,
callback: val => myPersonalDetails = _.findWhere(val, {isCurrentUser: true}),
callback: val => myPersonalDetails = val[currentUserEmail],
});

const allReports = {};
Expand Down

0 comments on commit a6fbd64

Please sign in to comment.