Small fixes

This commit is contained in:
2026-01-06 17:52:54 +01:00
parent abbd461e3f
commit f6ce39a40b
3 changed files with 4 additions and 1 deletions
+2
View File
@@ -6,6 +6,7 @@ import { useState } from "react";
import { useRouter } from "next/navigation";
import { CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { loginUser } from "@/actions/user";
import Cookies from "js-cookie";
type Feedback = { kind: "error" | "info"; message: string };
@@ -26,6 +27,7 @@ export default function Login() {
message: "Login successful! Redirecting...",
});
Cookies.set("servers", "");
router.push("/chat");
} catch (err: any) {
setFeedback({