Skip to content

Commit b43e39d

Browse files
MelvinBotdangrous
andcommitted
Add handwrittenReceipt to prohibited expenses summary on rules page
The IndividualExpenseRulesSection component manually lists each active prohibited expense in the summary but was missing handwrittenReceipt, so toggling it on had no visible effect on the rules overview. Co-authored-by: Daniel Gale-Rosen <dangrous@users.noreply.github.com>
1 parent 3111425 commit b43e39d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/pages/workspace/rules/IndividualExpenseRulesSection.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ function IndividualExpenseRulesSection({policyID}: IndividualExpenseRulesSection
127127
prohibitedExpensesList.push(translate('workspace.rules.individualExpenseRules.tobacco'));
128128
}
129129

130+
if (policy?.prohibitedExpenses?.handwrittenReceipt) {
131+
prohibitedExpensesList.push(translate('workspace.rules.individualExpenseRules.handwrittenReceipt'));
132+
}
133+
130134
// If no expenses are prohibited, return empty string
131135
if (!prohibitedExpensesList.length) {
132136
return '';

0 commit comments

Comments
 (0)