summaryrefslogtreecommitdiff
path: root/src/core/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/components')
-rw-r--r--src/core/components/elements/Navbar/NavbarDesktop.jsx6
-rw-r--r--src/core/components/layouts/BasicLayout.jsx6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx
index 06c15b73..17aedeb6 100644
--- a/src/core/components/elements/Navbar/NavbarDesktop.jsx
+++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx
@@ -179,7 +179,7 @@ const NavbarDesktop = () => {
</div>
<div className='w-3/12 flex gap-x-1 relative'>
- {!authenticated && (
+ {!auth && (
<>
<Link
href='/login'
@@ -195,10 +195,10 @@ const NavbarDesktop = () => {
</Link>
</>
)}
- {authenticated && (
+ {auth && (
<>
<div href='/' className='navbar-user-dropdown-button'>
- <span>Halo, {authenticated?.name}</span>
+ <span>Halo, {auth?.name}</span>
<div className='ml-auto'>
<ChevronDownIcon className='w-6' />
</div>
diff --git a/src/core/components/layouts/BasicLayout.jsx b/src/core/components/layouts/BasicLayout.jsx
index e5c6908a..0fea1a3b 100644
--- a/src/core/components/layouts/BasicLayout.jsx
+++ b/src/core/components/layouts/BasicLayout.jsx
@@ -27,9 +27,9 @@ const BasicLayout = ({ children }) => {
}
useEffect(() => {
- // if (!auth && session) {
- // setting()
- // }
+ if (!auth && session) {
+ setting()
+ }
console.log('ini auth', auth)
console.log('ini session', session)
const getIP = async () => {