fix(auth): fix fetch user info at login

This commit is contained in:
shafin-r
2025-10-07 13:50:29 +06:00
parent e1a33d1398
commit d1947e8e6e
3 changed files with 26 additions and 27 deletions

View File

@ -8,6 +8,7 @@ import { useModal } from "@/context/ModalContext";
import { useAuthStore } from "@/stores/authStore";
import { useTimerStore } from "@/stores/timerStore";
import { useExamStore } from "@/stores/examStore";
import { BsPatchCheckFill } from "react-icons/bs";
interface HeaderProps {
displayUser?: boolean;
@ -59,7 +60,7 @@ const Header = ({
</Avatar>
<span className="text-md font-bold text-white flex items-center gap-2">
Hello, {user?.username ? user.username.split(" ")[0] : "User"}{" "}
<BadgeCheck size={20} color="white" />
<BsPatchCheckFill size={20} color="white" />
</span>
</div>
)}