diff --git a/app/dashboard/templates/dashboard/deleted_alias.html b/app/dashboard/templates/dashboard/deleted_alias.html
index 84832b16..feedd97d 100644
--- a/app/dashboard/templates/dashboard/deleted_alias.html
+++ b/app/dashboard/templates/dashboard/deleted_alias.html
@@ -11,6 +11,12 @@
Deleted Aliases
+ {% if deleted_aliases|length == 0 %}
+
+ You haven't deleted any alias.
+
+ {% endif %}
+
{% for deleted_alias in deleted_aliases %}
{{ deleted_alias.email }}
diff --git a/app/dashboard/views/deleted_alias.py b/app/dashboard/views/deleted_alias.py
index 20ce13f0..77237f05 100644
--- a/app/dashboard/views/deleted_alias.py
+++ b/app/dashboard/views/deleted_alias.py
@@ -8,6 +8,6 @@ from app.models import DeletedAlias
@dashboard_bp.route("/deleted_alias", methods=["GET", "POST"])
@login_required
def deleted_alias_route():
- deleted_aliases = DeletedAlias.query.filter_by(user_id=current_user.id)
+ deleted_aliases = DeletedAlias.query.filter_by(user_id=current_user.id).all()
return render_template("dashboard/deleted_alias.html", **locals())