From 8204e89db7d94f288b6e03c343ba8222675f2424 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Wed, 6 May 2026 23:47:54 -0700 Subject: [PATCH] fix(revenuecat): clear duration default when endTimeMs is provided The duration dropdown defaults to 'monthly' so any user filling in the advanced endTimeMs field would otherwise hit the XOR guard. Clear duration in the params mapper so endTimeMs takes precedence. --- apps/sim/blocks/blocks/revenuecat.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sim/blocks/blocks/revenuecat.ts b/apps/sim/blocks/blocks/revenuecat.ts index 316a4fe842..cf2814dc47 100644 --- a/apps/sim/blocks/blocks/revenuecat.ts +++ b/apps/sim/blocks/blocks/revenuecat.ts @@ -399,6 +399,7 @@ Return ONLY the numeric timestamp, no text.`, } if (params.endTimeMs !== undefined && params.endTimeMs !== '') { next.endTimeMs = Number(params.endTimeMs) + next.duration = undefined } if (params.expiryTimeMs !== undefined && params.expiryTimeMs !== '') { next.expiryTimeMs = Number(params.expiryTimeMs)