generated from muhtadeetaron/nextjs-template
fix(auth): fix fetch user info at login
This commit is contained in:
@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user