fix(widget): powered toggle persistence, copy buttons, version dates, showLessonsCount, color pickers, and loading spinner
This commit is contained in:
@@ -49,14 +49,15 @@
|
||||
checkoutURL.searchParams.set('products', isYearlyPlan ? plan.CTA.PRODUCT_ID_YEARLY : plan.CTA.PRODUCT_ID);
|
||||
checkoutURL.searchParams.set('orgId', $currentOrg.id);
|
||||
|
||||
window.location.href = checkoutURL.toString();
|
||||
requestAnimationFrame(() => {
|
||||
window.location.href = checkoutURL.toString();
|
||||
});
|
||||
} catch (error) {
|
||||
isLoadingPlan = null;
|
||||
console.error('Error subscribing', error);
|
||||
|
||||
snackbar.error('snackbar.upgrade.failed');
|
||||
}
|
||||
|
||||
isLoadingPlan = null;
|
||||
}
|
||||
|
||||
function onUpgrade() {
|
||||
|
||||
Reference in New Issue
Block a user