refactor-upto-phase 6
This commit is contained in:
@@ -32,6 +32,10 @@ export default function SignInForm() {
|
||||
const from = (location.state as any)?.from?.pathname || "/";
|
||||
navigate(from, { replace: true });
|
||||
} catch (err: any) {
|
||||
if (err?.code === 'PLAN_REQUIRED') {
|
||||
window.location.href = 'https://igny8.com/pricing';
|
||||
return;
|
||||
}
|
||||
setError(err.message || "Login failed. Please check your credentials.");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user