From f8c98e464182d9f65aa0a69ea90da8f42092f892 Mon Sep 17 00:00:00 2001
From: Luke Pulverenti
Date: Mon, 16 Nov 2015 11:38:12 -0500
Subject: [PATCH] update queries
---
dashboard-ui/cordova/registrationservices.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dashboard-ui/cordova/registrationservices.js b/dashboard-ui/cordova/registrationservices.js
index 1771e3c8d0..711d7b4656 100644
--- a/dashboard-ui/cordova/registrationservices.js
+++ b/dashboard-ui/cordova/registrationservices.js
@@ -114,8 +114,11 @@
html += Globalize.translate('MessageToValidateSupporter');
html += '
';
+ var hasProduct = false;
+
if (unlockableProductInfo) {
+ hasProduct = true;
var unlockText = Globalize.translate('ButtonUnlockWithPurchase');
if (unlockableProductInfo.price) {
unlockText = Globalize.translate('ButtonUnlockPrice', unlockableProductInfo.price);
@@ -127,6 +130,7 @@
for (var i = 0, length = subscriptionOptions.length; i < length; i++) {
+ hasProduct = true;
html += '';
html += '';
html += subscriptionOptions[i].buttonText;
@@ -134,7 +138,7 @@
html += '
';
}
- if (IapManager.restorePurchase) {
+ if (hasProduct && IapManager.restorePurchase) {
html += '';
html += '' + Globalize.translate('ButtonRestorePreviousPurchase') + '';
html += '
';