Skip to content

Commit 4863d0e

Browse files
committed
Improved the logic for upgrading to pro
1 parent 34085bf commit 4863d0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,8 @@ export function TierPro({
651651
<input type="hidden" name="planCode" value={plan.code} />
652652
<input type="hidden" name="callerPath" value={location.pathname} />
653653
{subscription?.plan !== undefined &&
654-
subscription?.plan?.title === "Hobby" &&
654+
subscription?.plan?.type === "paid" &&
655+
subscription?.plan?.code !== plan.code &&
655656
subscription.canceledAt === undefined ? (
656657
<Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen} key="upgrade">
657658
<DialogTrigger asChild>

0 commit comments

Comments
 (0)