From f6ce39a40b912ac4281cc20ae7e6f32b5300a940 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Tue, 6 Jan 2026 17:52:54 +0100 Subject: [PATCH] Small fixes --- src/app/auth/CreateAccount.tsx | 1 + src/app/auth/Login.tsx | 2 ++ src/app/chat/page.tsx | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/auth/CreateAccount.tsx b/src/app/auth/CreateAccount.tsx index 6fa1286..8424e67 100644 --- a/src/app/auth/CreateAccount.tsx +++ b/src/app/auth/CreateAccount.tsx @@ -82,6 +82,7 @@ export default function CreateAccount() { Cookies.set("verify_temp_email", email); Cookies.set("verify_temp_password", password); router.push(`/verify`); + Cookies.set("servers", ""); } else { setFeedback({ message: response.message, kind: "error" }); } diff --git a/src/app/auth/Login.tsx b/src/app/auth/Login.tsx index d3fbc2f..6c1e61d 100644 --- a/src/app/auth/Login.tsx +++ b/src/app/auth/Login.tsx @@ -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({ diff --git a/src/app/chat/page.tsx b/src/app/chat/page.tsx index 38d0569..b9c640e 100644 --- a/src/app/chat/page.tsx +++ b/src/app/chat/page.tsx @@ -34,7 +34,7 @@ export default function ChatHub() { const activeServers: Server[] = Object.values(app.servers).slice(0, 3); const trendingServers: Server[] = [ { - id: "orus", + id: "7de3138f-e0b6-4d96-8158-8c7e866ba0ff", name: "ORUS", icon_url: "https://github.com/orus-dev.png", channels: [],