Fix TypeScript errors in installmentMonthly translation calls

- Convert installmentMonth string to number for count parameter
- Fix type mismatch: t() expects count as number, not string
- Updated files: list-item.tsx, billing-info-section.tsx

Fixes compilation errors where { count: string } was incompatible
with TOptionsBase requirement of count: number.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-10-30 17:14:02 +09:00
parent 29f69c248c
commit 1dcae928fa
2 changed files with 3 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ export const ListItem = ({
(!!installmentMonth && parseInt(installmentMonth) > 1) &&
<>
<span className="separator">|</span>
<span>{ t('transaction.fields.installmentMonthly', { count: installmentMonth }) }</span>
<span>{ t('transaction.fields.installmentMonthly', { count: parseInt(installmentMonth) }) }</span>
</>
}
</div>
@@ -199,7 +199,7 @@ export const ListItem = ({
(!!installmentMonth && parseInt(installmentMonth) > 1) &&
<>
<span className="separator">|</span>
<span>{ t('transaction.fields.installmentMonthly', { count: installmentMonth }) }</span>
<span>{ t('transaction.fields.installmentMonthly', { count: parseInt(installmentMonth) }) }</span>
</>
}
</div>

View File

@@ -16,7 +16,7 @@ export const BillingInfoSection = ({
className="kv-row"
>
<span className="k">{ t('transaction.fields.installmentMonth') }</span>
<span className="v">{ t('transaction.fields.installmentMonthly', { count: billingInfo?.installmentMonth }) }</span>
<span className="v">{ t('transaction.fields.installmentMonthly', { count: parseInt(billingInfo?.installmentMonth || '0') }) }</span>
</li>
);
}