Skip to content

Commit b53a94b

Browse files
committed
fix: align canTrial handling — use !== true in start.ts for consistency with list.ts
Both commands now treat undefined canTrial conservatively: list.ts does not show a plan trial row, start.ts rejects the attempt. This avoids user confusion where "sentry trial start plan" succeeds but "sentry trial list" shows no plan trial option.
1 parent cc76470 commit b53a94b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/trial/start.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ async function handlePlanTrial(
250250
);
251251
}
252252

253-
// canTrial is optional in the schema — only reject when explicitly false
254-
if (info.canTrial === false) {
253+
// Consistent with list.ts: only proceed when canTrial is explicitly true
254+
if (info.canTrial !== true) {
255255
throw new ValidationError(
256256
`No plan trial available for organization '${orgSlug}'.`,
257257
"name"

0 commit comments

Comments
 (0)