Skip to content

Commit

Permalink
disable server picker if only 1 server
Browse files Browse the repository at this point in the history
  • Loading branch information
LoV432 committed Feb 3, 2024
1 parent 68f5279 commit 4517aa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/components/ServerPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export default function ServerPicker({
}) {
const [activeServerIndex, setActiveServerIndex] =
useRecoilState(activeServerStore);
if (totalServers == 1) {
return null;
}
return (
<div className="my-5 flex flex-row flex-wrap justify-center gap-5">
{[...Array(totalServers)].map((e, index) => (
Expand Down

0 comments on commit 4517aa0

Please sign in to comment.