🐛 fix: Simplify protocol enable checks by removing unnecessary false comparisons

This commit is contained in:
web
2025-09-28 09:19:54 -07:00
parent 35e1cef18e
commit 4828700776
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export const useServerStore = create<ServerState>((set, get) => ({
getServerEnabledProtocols: (serverId: number) => {
const server = get().servers.find((s) => s.id === serverId);
return server?.protocols?.filter((p) => p.enable !== false) || [];
return server?.protocols?.filter((p) => p.enable) || [];
},
getProtocolPort: (serverId?: number, protocol?: string) => {