Skip to content

Commit

Permalink
fix(versioning): fix version number not displaying when authenticatio… (
Browse files Browse the repository at this point in the history
#66)

# Description

Previously, the version number was not displayed when turning off the
authentication due to a small logic error.

## Type of change

Please delete options that are not relevant.

-   [ ] Minor change (non-breaking change, e.g. documentation adaption)
-   [x] Bug fix (non-breaking change which fixes an issue)
-   [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that causes existing functionality
to not work as expected)
  • Loading branch information
Xmilofranke authored and Frederik Schlüter committed Sep 6, 2024
1 parent 4732056 commit dbb327d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/layout/menu/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,11 @@ export default function MainMenu() {
>
{`Copyright © ${new Date().getFullYear()} XITASO GmbH`}
</Typography>
{!useAuthentication ||
(!auth.isLoggedIn && (
<Typography align="left" paddingLeft="16px" paddingBottom="10px" style={{ opacity: '0.6' }}>
{versionString}
</Typography>
))}
{(!useAuthentication || !auth.isLoggedIn) && (
<Typography align="left" paddingLeft="16px" paddingBottom="10px" style={{ opacity: '0.6' }}>
{versionString}
</Typography>
)}
{useAuthentication && auth.isLoggedIn && (
<Box>
<List>
Expand Down

0 comments on commit dbb327d

Please sign in to comment.