Skip to content

Commit

Permalink
Using ??
Browse files Browse the repository at this point in the history
  • Loading branch information
cretadn22 committed Oct 7, 2024
1 parent b515fe0 commit dab577d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/categories/CategorySettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function CategorySettingsPage({
const approverText = useMemo(() => {
const categoryApprover = CategoryUtils.getCategoryApproverRule(policy?.rules?.approvalRules ?? [], categoryName)?.approver ?? '';
const approver = PersonalDetailsUtils.getPersonalDetailByEmail(categoryApprover);
return approver?.displayName || categoryApprover;
return approver?.displayName ?? categoryApprover;
}, [categoryName, policy?.rules?.approvalRules]);

const defaultTaxRateText = useMemo(() => {
Expand Down

0 comments on commit dab577d

Please sign in to comment.