title: auto

des: auto
note:auto
This commit is contained in:
2023-10-26 17:56:10 +08:00
parent 0c3ac96d1b
commit 5748f13d20

View File

@@ -143,14 +143,19 @@ export default function HomeView({ user }: { user: USER_PROFILE }) {
h={100}
withBorder
onClick={() => {
if (stateUser.Profile === null) {
return toast("Lengkapi Profile Anda !");
// if (stateUser.Profile === null) {
// return toast("Lengkapi Profile Anda !");
// } else {
// if (e.link === "") {
// toast(e.name);
// } else {
// return router.push(e.link);
// }
// }
if (e.link === "") {
toast(e.name);
} else {
if (e.link === "") {
toast(e.name);
} else {
return router.push(e.link);
}
return router.push(e.link);
}
}}
>