diff --git a/app/dashboard/views/pricing.py b/app/dashboard/views/pricing.py
index 7c8f1ac7..1320cb72 100644
--- a/app/dashboard/views/pricing.py
+++ b/app/dashboard/views/pricing.py
@@ -32,9 +32,9 @@ def pricing():
flash("You already have a lifetime subscription", "error")
return redirect(url_for("dashboard.index"))
- sub: Subscription = current_user.get_paddle_subscription()
+ paddle_sub: Subscription = current_user.get_paddle_subscription()
# user who has canceled can re-subscribe
- if sub and not sub.cancelled:
+ if paddle_sub and not paddle_sub.cancelled:
flash("You already have an active subscription", "error")
return redirect(url_for("dashboard.index"))
diff --git a/templates/dashboard/setting.html b/templates/dashboard/setting.html
index 8b0026a9..43a61cf0 100644
--- a/templates/dashboard/setting.html
+++ b/templates/dashboard/setting.html
@@ -227,15 +227,15 @@
You have linked your Proton account: {{ proton_linked_account }} Unlink account
{% else %}
You can connect your Proton account with your SimpleLogin one.