Skip to content

Commit 7520bff

Browse files
committed
fix: revert to navigate() for billing portal path
1 parent 0ba5fbb commit 7520bff

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

apps/builder/app/dashboard/profile-menu.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,9 @@ export const ProfileMenu = ({
8787
purchase.subscriptionId ? (
8888
<DropdownMenuItem
8989
key={purchase.subscriptionId}
90-
onSelect={() => {
91-
window.location.href = userPlanSubscriptionPath(
92-
purchase.subscriptionId
93-
);
94-
}}
90+
onSelect={() =>
91+
navigate(userPlanSubscriptionPath(purchase.subscriptionId))
92+
}
9593
>
9694
{purchase.planName}
9795
</DropdownMenuItem>

0 commit comments

Comments
 (0)