Skip to content

Commit 8472ba6

Browse files
committed
fix description comment
1 parent bdc2baf commit 8472ba6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/languages/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,7 @@ const translations = {
15291529
reimbursable: (value: boolean) => (value ? 'marked the expense as "reimbursable"' : 'marked the expense as "non-reimbursable"'),
15301530
billable: (value: boolean) => (value ? 'marked the expense as "billable"' : 'marked the expense as "non-billable"'),
15311531
tax: (value: string, isFirst: boolean) => (isFirst ? `set the tax rate to "${value}"` : `tax rate to "${value}"`),
1532+
description: (value: string, isFirst: boolean) => (isFirst ? `set the description to "${value}"` : `description to "${value}"`),
15321533
common: (key: keyof PolicyRulesModifiedFields, value: string, isFirst: boolean) => {
15331534
const field = translations.common[key].toLowerCase();
15341535
return isFirst ? `set the ${field} to "${value}"` : `${field} to "${value}"`;

src/libs/ModifiedExpenseMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function getPolicyRulesModifiedMessage(translate: LocalizedTranslate, fields: Po
233233
}
234234

235235
if (key === 'comment') {
236-
return translate('iou.policyRulesModifiedFields.common', translate('common.description'), updatedValue, isFirst);
236+
return translate('iou.policyRulesModifiedFields.description', updatedValue, isFirst);
237237
}
238238

239239
return translate('iou.policyRulesModifiedFields.common', key, updatedValue, isFirst);

0 commit comments

Comments
 (0)