Skip to content

Commit 0395779

Browse files
committed
feat (console): display overage fee on a billing screen - fix math
1 parent d64eef1 commit 0395779

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webapps/console/components/Billing/BillingManager.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const EventsUsageSection: React.FC<{}> = () => {
9595
<br />
9696
{billing?.settings?.overagePricePer100k && (
9797
<div className="text-textLight text-xs">
98-
Overage fee: ${billing.settings.overagePricePer100k * 1000} per 1,000,000 events
98+
Overage fee: ${billing.settings.overagePricePer100k * 10} per 1,000,000 events
9999
</div>
100100
)}
101101
</div>
@@ -262,9 +262,9 @@ const ConnectorUsageSection: React.FC<{}> = () => {
262262
<i>{dayjs(periodStart).utc().format("MMM DD, YYYY")}</i> to{" "}
263263
<i>{dayjs(periodEnd).utc().format("MMM DD, YYYY")}</i>. The quota will be reset on{" "}
264264
<i>{dayjs(periodEnd).add(1, "day").utc().format("MMM DD")}</i>.
265-
{billing?.settings?.overagePricePer100k && (
265+
{billing?.settings?.dailyActiveSyncsOverage && (
266266
<div className="text-textLight text-xs">
267-
Overage fee: ${billing.settings.overagePricePer100k * 10} per extra daily active sync`
267+
Overage fee: ${billing?.settings?.dailyActiveSyncsOverage} per extra daily active sync
268268
</div>
269269
)}
270270
</div>

0 commit comments

Comments
 (0)