From cd2d3a44ea95bd82d7f2b1a7bd2f6b3c691a7331 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Fri, 9 Sep 2016 07:40:27 -0400 Subject: [PATCH] Fix wording --- js/app.js | 2 +- js/page/referral.js | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/js/app.js b/js/app.js index 51e70b8d8..697bd33c2 100644 --- a/js/app.js +++ b/js/app.js @@ -87,7 +87,7 @@ var App = React.createClass({ '?send' : 'Send', '?receive' : 'Receive', '?claim' : 'Claim Beta Code', - '?referral' : 'Claim Referral', + '?referral' : 'Check Referral Credit', }; default: return null; diff --git a/js/page/referral.js b/js/page/referral.js index e15b6bfbb..e4df4de49 100644 --- a/js/page/referral.js +++ b/js/page/referral.js @@ -38,9 +38,9 @@ var ReferralPage = React.createClass({ var response = JSON.parse(xhr.responseText); if (response.success) { - var credits = response.activationCredits + response.referralCredits; - alert('Your referral code has been redeemed! ' + credits + ' credits will be added to ' + - 'your balance shortly.'); + alert('You have earned ' + response.referralCredits + ' credits from referrals and ' + + response.activationCredits + ' credits from activations.'); + window.location = '?home'; } else { alert(response.reason); @@ -68,9 +68,10 @@ var ReferralPage = React.createClass({ return (
-

Claim your referral credits

+

Check your referral credits

-

Did you refer someone to LBRY? Enter your referral code and email address below to receive your credits!

+

Have you referred others to LBRY? Enter your referral code and email address below to check how many credits you've earned!

+

As a reminder, your referral code is the same as your LBRY invitation code.