diff --git a/src/app/features/add-network/add-network.tsx b/src/app/features/add-network/add-network.tsx index 3353dd3b8f4..103228ed761 100644 --- a/src/app/features/add-network/add-network.tsx +++ b/src/app/features/add-network/add-network.tsx @@ -110,6 +110,11 @@ export function AddNetwork() { onSubmit={async () => { const { name, stacksUrl, bitcoinUrl, key } = formikProps.values; + if (!name) { + setError('Enter a name'); + return; + } + if (!isValidUrl(stacksUrl)) { setError('Enter a valid Stacks API URL'); return;