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.
Connect + class="mr-2" src="/static/images/proton.svg">Connect with Proton {% endif %} @@ -270,10 +270,10 @@ @@ -286,9 +286,9 @@ {% for is_public, domain in current_user.available_domains_for_random_alias() %} @@ -333,27 +333,27 @@
+ {% if current_user.replace_reverse_alias %} checked {% endif %} class="form-check-input">
@@ -407,8 +407,8 @@
@@ -430,7 +430,7 @@
+ {% if current_user.expand_alias_info %} checked {% endif %} class="form-check-input">
@@ -455,7 +455,7 @@
+ {% if current_user.include_website_in_one_click_alias %} checked {% endif %} class="form-check-input">
@@ -502,7 +502,7 @@
+ {% if current_user.one_click_unsubscribe_block_sender %} checked {% endif %} class="form-check-input">
@@ -545,12 +545,12 @@ + {% if current_user.include_header_email_header %} checked {% endif %} class="form-check-input">