From 5748f13d202d5d929977d5fce601649f485af165 Mon Sep 17 00:00:00 2001 From: Bagasbanuna02 Date: Thu, 26 Oct 2023 17:56:10 +0800 Subject: [PATCH] title: auto des: auto note:auto --- src/app_modules/home/view.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/app_modules/home/view.tsx b/src/app_modules/home/view.tsx index e57273ba..473d3d88 100644 --- a/src/app_modules/home/view.tsx +++ b/src/app_modules/home/view.tsx @@ -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); } }} >