Skip to content

Commit 8204e89

Browse files
committed
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.
1 parent a5403cd commit 8204e89

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/sim/blocks/blocks/revenuecat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ Return ONLY the numeric timestamp, no text.`,
399399
}
400400
if (params.endTimeMs !== undefined && params.endTimeMs !== '') {
401401
next.endTimeMs = Number(params.endTimeMs)
402+
next.duration = undefined
402403
}
403404
if (params.expiryTimeMs !== undefined && params.expiryTimeMs !== '') {
404405
next.expiryTimeMs = Number(params.expiryTimeMs)

0 commit comments

Comments
 (0)