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:
@@ -166,7 +166,7 @@ export const ListItem = ({
|
|||||||
(!!installmentMonth && parseInt(installmentMonth) > 1) &&
|
(!!installmentMonth && parseInt(installmentMonth) > 1) &&
|
||||||
<>
|
<>
|
||||||
<span className="separator">|</span>
|
<span className="separator">|</span>
|
||||||
<span>{ t('transaction.fields.installmentMonthly', { count: installmentMonth }) }</span>
|
<span>{ t('transaction.fields.installmentMonthly', { count: parseInt(installmentMonth) }) }</span>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@@ -199,7 +199,7 @@ export const ListItem = ({
|
|||||||
(!!installmentMonth && parseInt(installmentMonth) > 1) &&
|
(!!installmentMonth && parseInt(installmentMonth) > 1) &&
|
||||||
<>
|
<>
|
||||||
<span className="separator">|</span>
|
<span className="separator">|</span>
|
||||||
<span>{ t('transaction.fields.installmentMonthly', { count: installmentMonth }) }</span>
|
<span>{ t('transaction.fields.installmentMonthly', { count: parseInt(installmentMonth) }) }</span>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export const BillingInfoSection = ({
|
|||||||
className="kv-row"
|
className="kv-row"
|
||||||
>
|
>
|
||||||
<span className="k">{ t('transaction.fields.installmentMonth') }</span>
|
<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>
|
</li>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user