mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-09 03:18:04 +00:00
Fix integrations checkout without org
This commit is contained in:
parent
be59327edf
commit
5e45c36303
1 changed files with 6 additions and 0 deletions
|
|
@ -2427,6 +2427,12 @@ export function IntegrationsView({
|
|||
|
||||
const handleUpgrade = async (planId?: unknown) => {
|
||||
const checkoutPlanId = planId === "api_max" ? "api_max" : "api_pro"
|
||||
if (publicMode || !org) {
|
||||
const loginUrl = new URL("/login", window.location.origin)
|
||||
loginUrl.searchParams.set("redirect", window.location.href)
|
||||
window.location.assign(loginUrl.toString())
|
||||
return
|
||||
}
|
||||
try {
|
||||
const result = await autumn.attach({
|
||||
planId: checkoutPlanId,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue