Skip to content

Commit

Permalink
Update navigationItems.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Aug 19, 2024
1 parent 014df63 commit 6ab8e3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/routes/navigationItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ function getSequenceRelatedItems(organism: string | undefined) {
return [
{
text: 'Browse',
path: organism ? routes.searchPage(organism) : routes.organismSelectorPage('search'),
path: organism !== undefined ? routes.searchPage(organism) : routes.organismSelectorPage('search'),
},
{
text: 'Submit',
path: organism ? routes.submissionPageWithoutGroup(organism) : routes.organismSelectorPage('submission'),
path: organism !== undefined ? routes.submissionPageWithoutGroup(organism) : routes.organismSelectorPage('submission'),
},
{
text: 'SeqSets',
Expand All @@ -28,7 +28,7 @@ function getAccountItem(isLoggedIn: boolean, loginUrl: string | undefined, organ
return isLoggedIn
? {
text: 'My account',
path: organism ? routes.userOverviewPage(organism) : routes.userOverviewPage(),
path: organism !== undefined ? routes.userOverviewPage(organism) : routes.userOverviewPage(),
}
: {
text: 'Login',
Expand Down

0 comments on commit 6ab8e3f

Please sign in to comment.