fixed few bugs

This commit is contained in:
Alibek committed 2024-03-02 02:07:30 +06:00
1 parent 5330f21a73
commit bcc7279d39
9 files changed
+37 -33

No files matched your search

+2
View File
@@ -15,7 +15,9 @@ const NavAuth: React.FC<INavAuthProps> = ({
}: INavAuthProps) => {
const t = useTranslations("navigation");
const session = useSession();
const auth = session.status === "authenticated" ? true : false;
const pathname = usePathname();
return (
<>
+1 -3
View File
@@ -100,7 +100,7 @@ const SignUpForm = () => {
}
} catch (error: unknown) {
if (error instanceof AxiosError) {
if (error.response?.status === 401) {
if ([401, 400].includes(error.response?.status as number)) {
setError("Такой пользователь уже существует");
} else if (
error.response?.status.toString().slice(0, 1) === "5"
@@ -147,9 +147,7 @@ const SignUpForm = () => {
{loader ? <Loader /> : "Войти"}
</button>
{/*
<GoogleButton />
*/}
</div>
</form>
);