🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Handle license activation response in AppSumoSignupPage to allow proceeding if license is already activated
Bill Yang332e7175ecc1
diff --git a/client/src/app/as/callback/page.tsx b/client/src/app/as/callback/page.tsxindex 240dd90e8..88341d1dc 100644--- a/client/src/app/as/callback/page.tsx+++ b/client/src/app/as/callback/page.tsx@@ -162,6 +162,13 @@ export default function AppSumoSignupPage() {if (!response.ok) {const errorData = await response.json();++ // If license is already activated, treat it as success (user can proceed)+ if (response.status === 409 && errorData.error === "License already activated") {+ console.log("AppSumo license was already activated");+ return true;+ }+throw new Error(errorData.error || "Failed to activate AppSumo license");}