Skip to content

Commit f943405

Browse files
author
Adam Paulen
committed
disable add button if no spawn name
1 parent 7a3d835 commit f943405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HomePage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function HomePage() {
145145
placeholder="Name your server"
146146
onChange={(e) => setServerName(e.target.value)}
147147
/>
148-
<Button title="Add New Server" onClickFun={handleAddServer} />
148+
<Button title="Add New Server" onClickFun={handleAddServer} disabled={serverName === ""} />
149149
</div>
150150
{Object.entries(spawners).map(([name, spawner], dropdownIndex) => (
151151
<DropDownButton

0 commit comments

Comments
 (0)