From 02308d517c54d44847b338c532fbb3115d6a8c1e Mon Sep 17 00:00:00 2001 From: Jeff Channell Date: Mon, 19 Aug 2013 17:54:07 -0400 Subject: [PATCH 1/2] Coupons without descriptions no longer show "null" --- src/js/subscription.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/subscription.js b/src/js/subscription.js index 81b7e5da0..7f2fec52d 100644 --- a/src/js/subscription.js +++ b/src/js/subscription.js @@ -156,7 +156,7 @@ R.Coupon = { else if(json.discount_percent) c.discountRatio = json.discount_percent/100; - c.description = json.description; + c.description = json.description ? json.description : ''; return c; } From f9417bb26489bd8701622ecce5f524c5323213ff Mon Sep 17 00:00:00 2001 From: Jeff Channell Date: Tue, 20 Aug 2013 10:41:27 -0400 Subject: [PATCH 2/2] Shortened null coupon description fix as per em --- src/js/subscription.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/subscription.js b/src/js/subscription.js index 7f2fec52d..4bc360f64 100644 --- a/src/js/subscription.js +++ b/src/js/subscription.js @@ -156,7 +156,7 @@ R.Coupon = { else if(json.discount_percent) c.discountRatio = json.discount_percent/100; - c.description = json.description ? json.description : ''; + c.description = json.description || ''; return c; }