mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Fix credential required
This commit is contained in:
@@ -107,11 +107,11 @@ export const AppMenu = () => {
|
||||
</Button>
|
||||
</DropdownMenu.Target>
|
||||
<DropdownMenu.Dropdown>
|
||||
<DropdownMenu.Label>Server switcher</DropdownMenu.Label>
|
||||
<DropdownMenu.Label>Select a server</DropdownMenu.Label>
|
||||
{serverList.map((s) => {
|
||||
const requiresCredential = !serverCredentials.some(
|
||||
(c) => c.serverId === s.id && c.enabled
|
||||
);
|
||||
const requiresCredential =
|
||||
s.noCredential &&
|
||||
!serverCredentials.some((c) => c.serverId === s.id && c.enabled);
|
||||
|
||||
return (
|
||||
<DropdownMenu.Item
|
||||
|
||||
Reference in New Issue
Block a user