Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
remove unused attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Kracht <[email protected]>
  • Loading branch information
stefan-kracht committed Jan 12, 2024
1 parent 8b459fd commit f880d83
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/hooksNext/useApiKeyHandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ const useIsApiKeyRequired = () => {
* isFetched: indicates if the api key handling is finished. As long as
* this is false, isApiKeyRequired and isCurrentKeyValid can be undefined
*
* showLoginModal: a flag that indicates whether the UI should handle the
* displaying a login modal.
*
* showUsermenu: indicates whether the usermenu should be shown. In the
* enterprise version this is always true (and is independent from any
* api key handling), in the open source version this is only true if
Expand Down Expand Up @@ -68,7 +65,6 @@ const useApiKeyHandling = () => {
isApiKeyRequired,
isCurrentKeyValid,
isFetched,
showLoginModal: !isEnterprise,
showUsermenu: isEnterprise ? true : isApiKeyRequired,
};
};
Expand Down

0 comments on commit f880d83

Please sign in to comment.