From 647c49a9c99dab593c188919ec4bfce932e73f17 Mon Sep 17 00:00:00 2001 From: Ian Krieger Date: Thu, 21 Sep 2023 12:57:58 -0400 Subject: [PATCH] fix: not nullable --- src/user/library/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/library/index.test.ts b/src/user/library/index.test.ts index 213416e7..548fc1ad 100644 --- a/src/user/library/index.test.ts +++ b/src/user/library/index.test.ts @@ -125,7 +125,7 @@ describe("pricing logic (read)", () => { it("should convert per-impression values to CPM when populating CampaignForm", () => { const campaign = produce(BASE_CPM_CAMPAIGN_FRAGMENT, (c) => { - (c.adSets ?? []).forEach((adset) => { + c.adSets.forEach((adset) => { adset.billingType = "cpm"; adset.price = "0.007"; });