2
0

🚑 (billing) Fix chats pricing tiers incremental flat amou…

This commit is contained in:
Baptiste Arnaud
2023-10-17 08:32:41 +02:00
parent 797751b418
commit 6b0c263f88
5 changed files with 44 additions and 44 deletions

View File

@ -46,13 +46,9 @@ export const ChatsProTiersModal = ({ isOpen, onClose }: Props) => {
<Tbody>
{proChatTiers.map((tier, index) => {
const pricePerMonth =
proChatTiers
.slice(0, index + 1)
.reduce(
(acc, slicedTier) =>
acc + (slicedTier.flat_amount ?? 0),
0
) / 100
(tier.flat_amount ??
proChatTiers.at(-2)?.flat_amount ??
0) / 100
return (
<Tr key={tier.up_to}>
<Td isNumeric>