This commit is contained in:
2025-02-07 10:13:46 +08:00
parent 46a4c9a288
commit 19a9f438a8
5 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ export default function FooterHome({ dataUser }: { dataUser: any | null }) {
onClick={() => {
if (!dataUser) {
return null;
} else if (dataUser.profile === undefined) {
} else if (dataUser?.profile === undefined) {
router.push(RouterProfile.create, { scroll: false });
} else if (e.link == "") {
ComponentGlobal_NotifikasiPeringatan("Cooming Soon");
@@ -70,7 +70,7 @@ export default function FooterHome({ dataUser }: { dataUser: any | null }) {
<Stack align="center" spacing={2}>
{!dataUser ? (
<CustomSkeleton height={25} width={25} radius={"xl"} />
) : dataUser.profile === undefined ? (
) : dataUser?.profile === undefined ? (
<ActionIcon
variant={"transparent"}
onClick={() =>

View File

@@ -85,7 +85,7 @@ export default function HomeViewNew() {
<ActionIcon radius={"xl"} variant={"transparent"}>
<IconUserSearch color={MainColor.white} />
</ActionIcon>
) : dataUser?.profile === undefined ? (
) : dataUser && dataUser?.profile === undefined ? (
<ActionIcon
radius={"xl"}
variant={"transparent"}
@@ -112,7 +112,7 @@ export default function HomeViewNew() {
<ActionIcon radius={"xl"} variant={"transparent"}>
<IconBell color={MainColor.white} />
</ActionIcon>
) : dataUser?.profile === undefined ? (
) : dataUser && dataUser?.profile === undefined ? (
<ActionIcon
radius={"xl"}
variant={"transparent"}