mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Only show alert if user typed something
This commit is contained in:
parent
ccdb8d144c
commit
d4a6aa2d3b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue