diff --git a/app/api/views/new_custom_alias.py b/app/api/views/new_custom_alias.py index 7f0c8f22..28e27ce2 100644 --- a/app/api/views/new_custom_alias.py +++ b/app/api/views/new_custom_alias.py @@ -37,7 +37,7 @@ def new_custom_alias(): alias_prefix = data["alias_prefix"] alias_suffix = data["alias_suffix"] - # make sure alias_prefix is more than 3 chars + # make sure alias_prefix is not empty alias_prefix = alias_prefix.strip() alias_prefix = convert_to_id(alias_prefix) if not alias_prefix: # should be checked on frontend diff --git a/app/dashboard/templates/dashboard/alias_log.html b/app/dashboard/templates/dashboard/alias_log.html index 0e349076..938877e0 100644 --- a/app/dashboard/templates/dashboard/alias_log.html +++ b/app/dashboard/templates/dashboard/alias_log.html @@ -39,7 +39,7 @@ {% endfor %} - + {% endblock %} {% block script %} diff --git a/app/dashboard/templates/dashboard/custom_alias.html b/app/dashboard/templates/dashboard/custom_alias.html index 753536ae..f1c30b4c 100644 --- a/app/dashboard/templates/dashboard/custom_alias.html +++ b/app/dashboard/templates/dashboard/custom_alias.html @@ -18,16 +18,17 @@