Skip to content

Commit 0ce143c

Browse files
committed
info rate per hour/day
1 parent 721830a commit 0ce143c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

console/src/components/broadcasts/UpsertBroadcastDrawer.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export function UpsertBroadcastDrawer({
8989
// Watch campaign name changes using Form.useWatch
9090
const campaignName = Form.useWatch('name', form)
9191
const abTestingEnabled = Form.useWatch(['test_settings', 'enabled'], form)
92+
const rateLimitPerMinute = Form.useWatch(['audience', 'rate_limit_per_minute'], form)
9293

9394
// Enable tracking when A/B testing is enabled
9495
useEffect(() => {
@@ -366,6 +367,13 @@ export function UpsertBroadcastDrawer({
366367
<InputNumber min={1} />
367368
</Form.Item>
368369

370+
{rateLimitPerMinute && rateLimitPerMinute > 0 && (
371+
<div className="text-xs text-gray-600 -mt-4 mb-4">
372+
<div>{(rateLimitPerMinute * 60).toLocaleString()} emails per hour</div>
373+
<div>{(rateLimitPerMinute * 60 * 24).toLocaleString()} emails per day</div>
374+
</div>
375+
)}
376+
369377
<div className="text-xs mt-12 mb-4 font-bold border-b border-solid border-gray-400 pb-2 text-gray-900">
370378
URL Tracking Parameters
371379
</div>

0 commit comments

Comments
 (0)