From 085cc7a0b29a27cbcc24bddc3f832703a25847b6 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 14 Mar 2017 17:53:48 +0000 Subject: [PATCH] json stringify and trim recommended currency --- services/web/app/views/subscriptions/new.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/subscriptions/new.pug b/services/web/app/views/subscriptions/new.pug index 2d410f8fba..8995af6192 100644 --- a/services/web/app/views/subscriptions/new.pug +++ b/services/web/app/views/subscriptions/new.pug @@ -4,11 +4,11 @@ block scripts script(src="https://js.recurly.com/v3/recurly.js") script(type='text/javascript'). - window.recomendedCurrency = '#{currency}' window.countryCode = '#{countryCode}' window.plan_code = '#{plan_code}' window.recurlyApiKey = "!{settings.apis.recurly.publicKey}" - window.couponCode = "#{couponCode}" + window.couponCode = !{JSON.stringify(couponCode)} + window.recomendedCurrency = !{JSON.stringify(currency.slice(0,3))} block content .content.content-alt