Skip to content

Commit

Permalink
Simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
aldo-expensify committed May 2, 2024
1 parent f0395bf commit dfdcb72
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ function QuickbooksPreferredExporterConfigurationPage({policy}: WithPolicyConnec
}

// Don't show guides if the current user is not a guide themselves or an Expensify employee
if (
PolicyUtils.isExpensifyTeam(exporter.email) &&
policy?.owner &&
currentUserLogin &&
!PolicyUtils.isExpensifyTeam(policy?.owner) &&
!PolicyUtils.isExpensifyTeam(currentUserLogin)
) {
if (PolicyUtils.isExpensifyTeam(exporter.email) && !PolicyUtils.isExpensifyTeam(policy?.owner) && !PolicyUtils.isExpensifyTeam(currentUserLogin)) {
return options;
}
options.push({
Expand Down

0 comments on commit dfdcb72

Please sign in to comment.