Only show alert if user typed something

pull/54/head
Lim Chee Aun 2023-02-18 23:29:17 +08:00
rodzic ccdb8d144c
commit d4a6aa2d3b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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) {