Skip to content

Commit

Permalink
Fix sidebar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Feb 8, 2023
1 parent 5db5c58 commit 2829d82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ let doesDomainHaveApprovedAccountant;
Onyx.connect({
key: ONYXKEYS.ACCOUNT,
waitForCollectionCallback: true,
callback: val => doesDomainHaveApprovedAccountant = val.doesDomainHaveApprovedAccountant,
callback: val => {
if (!val) {
return;
}
doesDomainHaveApprovedAccountant = val.doesDomainHaveApprovedAccountant;
},
});

function getChatType(report) {
Expand Down

0 comments on commit 2829d82

Please sign in to comment.