Make sure license gets pushed and saved for default license replacements (#5001)

This commit is contained in:
ConnorYoh
2025-11-25 14:58:33 +00:00
committed by GitHub
parent 2ab7945130
commit 9fcaace8ed
2 changed files with 2 additions and 14 deletions
@@ -79,7 +79,8 @@ export const CheckoutProvider: React.FC<CheckoutProviderProps> = ({
}
// Check if this is an upgrade or new subscription
if (licenseInfo?.licenseKey) {
// Only treat as upgrade if there's a valid PRO/ENTERPRISE license (not NORMAL/free tier)
if (licenseInfo?.licenseType && licenseInfo.licenseType !== 'NORMAL') {
// UPGRADE: Resync existing license with Keygen
console.log('Upgrade detected - resyncing existing license');