Skip to content

Commit 0e43893

Browse files
committed
fix: use const values
1 parent 49ec44f commit 0e43893

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/SettlementButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function SettlementButton({
293293
activeAdminPolicies.forEach((activePolicy) => {
294294
const policyName = activePolicy.name;
295295
buttonOptions.push({
296-
text: translate('iou.payWithPolicy', {policyName: truncate(policyName, {length: 20}), formattedAmount: ''}),
296+
text: translate('iou.payWithPolicy', {policyName: truncate(policyName, {length: CONST.ADDITIONAL_ALLOWED_CHARACTERS}), formattedAmount: ''}),
297297
icon: Expensicons.Building,
298298
value: activePolicy.id,
299299
shouldUpdateSelectedIndex: false,
@@ -535,7 +535,7 @@ function SettlementButton({
535535
};
536536

537537
const customText = getCustomText();
538-
const secondaryText = truncate(getSecondaryText(), {length: 50});
538+
const secondaryText = truncate(getSecondaryText(), {length: CONST.FORM_CHARACTER_LIMIT});
539539

540540
const defaultSelectedIndex = paymentButtonOptions.findIndex((paymentOption) => {
541541
if (lastPaymentMethod === CONST.IOU.PAYMENT_TYPE.ELSEWHERE) {

0 commit comments

Comments
 (0)