fix: display email progress instead of scheduling progress for campaigns

This commit is contained in:
Dries Augustyns
2025-12-11 14:36:26 +01:00
parent 5e4adb71ad
commit 07f875c18c
3 changed files with 53 additions and 33 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ export default function CampaignDetailsPage() {
id && campaign?.data.status !== CampaignStatus.DRAFT ? `/campaigns/${id}/stats` : null,
{
revalidateOnFocus: false,
refreshInterval: campaign?.data.status === CampaignStatus.SENDING ? 5000 : 0, // Refresh every 5s if sending
refreshInterval: campaign?.data.status === CampaignStatus.SENDING ? 15000 : 0, // Refresh every 15s while sending
},
);