[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [donate/master] Fixed shirt and sizes for t-shirts



commit 69a2b0a2b57250a0e5658cc5ca50277dc1c93805
Author: Peter Haight <peterh@xxxxxxxxxxxxxxx>
Date:   Thu Apr 18 10:09:18 2019 -0700

    Fixed shirt and sizes for t-shirts
    
    The size for the t-shirt perk was getting set to the size and the fit
    and sizes for the t-shirt-pack were reversed.
    
    Issue #39739
---
 src/js/giving_form.jsx    | 10 +++++-----
 src/js/pay_pal_button.jsx | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/js/giving_form.jsx b/src/js/giving_form.jsx
index 34318134..4bfc8578 100644
--- a/src/js/giving_form.jsx
+++ b/src/js/giving_form.jsx
@@ -152,15 +152,15 @@ export function _GivingForm(props) {
     if (selectedPerk) {
       perkData['name'] = selectedPerk;
       if (selectedPerk == 't-shirt') {
-        perkData['size-1'] = fitsAndSizes['shirt1Fit'];
+        perkData['size-1'] = fitsAndSizes['shirt1Size'];
         perkData['fit-1'] = fitsAndSizes['shirt1Fit'];
         perkData['style-1'] = 'strength-in-numbers';
       } else if (selectedPerk == 't-shirt-pack'){
         perkData['style-1'] = perkOption;
-        perkData['fit-1'] = fitsAndSizes['shirt2Fit'];
-        perkData['fit-2'] = fitsAndSizes['shirt1Fit'];
-        perkData['size-1'] = fitsAndSizes['shirt2Size'];
-        perkData['size-2'] = fitsAndSizes['shirt1Size'];
+        perkData['fit-1'] = fitsAndSizes['shirt1Fit'];
+        perkData['fit-2'] = fitsAndSizes['shirt2Fit'];
+        perkData['size-1'] = fitsAndSizes['shirt1Size'];
+        perkData['size-2'] = fitsAndSizes['shirt2Size'];
       } else if (selectedPerk == 'sweatshirt') {
         perkData['size-1'] = fitsAndSizes['sweatshirtSize'];
       }
diff --git a/src/js/pay_pal_button.jsx b/src/js/pay_pal_button.jsx
index cc926403..f66aaebf 100644
--- a/src/js/pay_pal_button.jsx
+++ b/src/js/pay_pal_button.jsx
@@ -39,15 +39,15 @@ export function PayPalButton(props) {
     if (perk) {
       perkData['name'] = perk;
       if (perk == 't-shirt') {
-        perkData['size-1'] = fitsAndSizes['shirt1Fit'];
+        perkData['size-1'] = fitsAndSizes['shirt1Size'];
         perkData['fit-1'] = fitsAndSizes['shirt1Fit'];
         perkData['style-1'] = 'strength-in-numbers';
       } else if (perk == 't-shirt-pack'){
         perkData['style-1'] = perkOption;
-        perkData['fit-1'] = fitsAndSizes['shirt2Fit'];
-        perkData['fit-2'] = fitsAndSizes['shirt1Fit'];
-        perkData['size-1'] = fitsAndSizes['shirt2Size'];
-        perkData['size-2'] = fitsAndSizes['shirt1Size'];
+        perkData['fit-1'] = fitsAndSizes['shirt1Fit'];
+        perkData['fit-2'] = fitsAndSizes['shirt2Fit'];
+        perkData['size-1'] = fitsAndSizes['shirt1Size'];
+        perkData['size-2'] = fitsAndSizes['shirt2Size'];
       } else if (perk == 'sweatshirt') {
         perkData['size-1'] = fitsAndSizes['sweatshirtSize'];
       }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits