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.
This commit is contained in:
Waleed Latif
2026-05-06 23:47:54 -07:00
parent a5403cdc93
commit 8204e89db7
+1
View File
@@ -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)