From 78f4c4992f01f80197dc15658bbf2be66a372f6c Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 24 Apr 2023 19:07:06 -0600 Subject: [PATCH] Remove loyalty info since nobody's ever cashed it in anyways --- www/assets/js/account.js | 11 +++-------- www/pages/account.html | 12 +----------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/www/assets/js/account.js b/www/assets/js/account.js index 7aaa8c2..d1c9e48 100644 --- a/www/assets/js/account.js +++ b/www/assets/js/account.js @@ -101,11 +101,9 @@ function verifyCode(code) { } function displayAccountInfo() { - $("#loyaltyBalanceBox").addClass("display-none"); - $("#loyaltyErrorMessage").html(""); if (inStorage("accountkey") && inStorage("accountnumber")) { } else { - $("#loyaltyErrorMessage").text("Error: No account connected."); + $("#accountErrorMessage").text("Error: No account connected."); return; } apirequest(SETTINGS.apis.getaccountinfo, { @@ -115,8 +113,6 @@ function displayAccountInfo() { $("#hasaccountbox").css("display", ""); $("#loadingaccountbox").css("display", "none"); if (success.status == "OK") { - $("#loyaltyCreditBalanceHeading").text(success.credits + " points"); - $("#loyaltyBalanceBox").removeClass("display-none") $("#accountnumberspan").text(success.accountnumber); if (success.payments_setup === false) { @@ -131,11 +127,10 @@ function displayAccountInfo() { $("#accountupdateform input#streetaddress").val(success.streetaddress); $("#accountupdateform input#zipcode").val(success.zipcode); } else { - $("#loyaltyBalanceBox").addClass("display-none"); - $("#loyaltyErrorMessage").text("Error: " + success.msg); + $("#accountErrorMessage").text("Error: " + success.msg); } }, function (xhr, status, error) { - $("#loyaltyErrorMessage").text("Error: Couldn't get your account info. Try again later."); + $("#accountErrorMessage").text("Error: Couldn't get your account info. Try again later."); sendErrorReport("Account", "Couldn't display account info", "Server/network problem: " + xhr.status + ": " + xhr.statusText); }, "GET"); } diff --git a/www/pages/account.html b/www/pages/account.html index 3471796..64a611c 100644 --- a/www/pages/account.html +++ b/www/pages/account.html @@ -40,11 +40,6 @@ Your Account Number:

Loading...

-
-
You have earned a total of
-

...

- -
@@ -57,12 +52,7 @@
-
-
- Loyalty points have no cash value. All points and associated discounts - are offered as a courtesy by and at the discretion of Helena Express - and may be revoked, canceled, or modified at any time for any reason. -
+