Skip to content

Commit

Permalink
remove the conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong committed Aug 1, 2024
1 parent 5a0e8e0 commit 2542b93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ import { useStore } from '@nanostores/vue';
import { resolvePath } from '@/utils/helpers.js'
const $isNavigationOpen = useStore(isNavigationOpen);
const isCurrentPathEqualTo = val => resolvePath(val) === window.location.pathname
let menuList = ref([])
onMounted(() => {
menuList.value = [
!isCurrentPathEqualTo('/') && { name: 'Home', id: 'homeLink', path: '/' },
{ name: 'Home', id: 'homeLink', path: '/' },
{ name: 'About us', id: 'aboutUsLink', path: '/about-us' },
{ name: 'Blog', id: 'blogLink', path: '/blog' },
{ name: 'FAQS', id: 'blogLink', path: '/faq' },
Expand Down

0 comments on commit 2542b93

Please sign in to comment.