Enhance billing and subscription management: Added payment method checks in ProtectedRoute, improved error handling in billing components, and optimized API calls to reduce throttling. Updated user account handling in various components to ensure accurate plan and subscription data display.
This commit is contained in:
@@ -53,6 +53,12 @@ export default function SignUpForm() {
|
||||
|
||||
// Redirect to plan selection after successful registration
|
||||
navigate("/account/plans", { replace: true });
|
||||
// Hard fallback in case navigation is blocked by router state
|
||||
setTimeout(() => {
|
||||
if (window.location.pathname !== "/account/plans") {
|
||||
window.location.assign("/account/plans");
|
||||
}
|
||||
}, 500);
|
||||
} catch (err: any) {
|
||||
setError(err.message || "Registration failed. Please try again.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user