Skip to content

Commit

Permalink
fix: update perDay & totalMax defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Sep 21, 2023
1 parent 6034f53 commit 917a482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/user/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export function transformNewForm(
adSets: form.adSets.map((adSet) => ({
name: adSet.name,
billingType: form.billingType,
perDay: 1,
perDay: form.format === CampaignFormat.PushNotification ? 4 : 6,
segments: adSet.segments.map((s) => ({ code: s.code, name: s.name })),
oses: adSet.oses,
totalMax: 10,
totalMax: form.format === CampaignFormat.PushNotification ? 28 : 60,
conversions: transformConversion(adSet.conversions),
ads: adSet.creatives
.filter((c) => c.included)
Expand Down

0 comments on commit 917a482

Please sign in to comment.