Small fixes
This commit is contained in:
@@ -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" });
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user