mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
fix: improved fallback checking
This commit is contained in:
@@ -54,11 +54,10 @@ export default function EnterEmailStep({
|
|||||||
incrementStep();
|
incrementStep();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (axios.isAxiosError(e)) {
|
if (axios.isAxiosError(e)) {
|
||||||
let message = "Something went wrong";
|
let { message } = e.response?.data as { message: string };
|
||||||
if (e?.status === 422) {
|
|
||||||
message = "Invalid email";
|
if (typeof message !== "string") {
|
||||||
} else {
|
message = "Something went wrong";
|
||||||
message = (e.response?.data as { message: string })?.message || message;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
createNotification({
|
createNotification({
|
||||||
|
|||||||
Reference in New Issue
Block a user