1
0
Fork 0
mirror of https://github.com/cheeaun/phanpy.git synced 2025-03-29 17:11:37 +01:00

Only show alert if user typed something

This commit is contained in:
Lim Chee Aun 2023-02-18 23:29:17 +08:00
parent ccdb8d144c
commit d4a6aa2d3b

View file

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