Skip to content

Commit

Permalink
fix isLoggedIn errors
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Feb 27, 2024
1 parent f9fd71c commit 8f0aa3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/components/Navigation/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { navigationItems } from '../../routes';
const { organism, knownOrganisms } = cleanOrganism(Astro.params.organism);
const isLoggedIn = Astro.locals.session.isLoggedIn;
const isLoggedIn = Astro.locals.session && Astro.locals.session.isLoggedIn;

Check failure on line 9 in website/src/components/Navigation/Navigation.astro

View workflow job for this annotation

GitHub Actions / Check format

Unnecessary conditional, value is always truthy

Check failure on line 9 in website/src/components/Navigation/Navigation.astro

View workflow job for this annotation

GitHub Actions / Check format

Unexpected object value in conditional. The condition is always true
const loginUrl = await getAuthUrl(Astro.url.toString());
---
Expand Down

0 comments on commit 8f0aa3c

Please sign in to comment.