diff --git a/src/pages/public.jsx b/src/pages/public.jsx index 4782412d..8831be08 100644 --- a/src/pages/public.jsx +++ b/src/pages/public.jsx @@ -83,7 +83,7 @@ function Public({ local, ...props }) { 'Enter a new instance e.g. "mastodon.social"', ); if (!/\./.test(newInstance)) { - alert('Invalid instance'); + if (newInstance) alert('Invalid instance'); return; } if (newInstance) {