From 3ee4a3fc48f01416fa10c0f92e503c17827d7d3b Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Tue, 27 Oct 2015 10:21:51 -0700 Subject: [PATCH] Switch between highlighted buttons --- common/app/routes/Jobs/components/GoToPayPal.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/app/routes/Jobs/components/GoToPayPal.jsx b/common/app/routes/Jobs/components/GoToPayPal.jsx index f6d82b6331..3345e16d08 100644 --- a/common/app/routes/Jobs/components/GoToPayPal.jsx +++ b/common/app/routes/Jobs/components/GoToPayPal.jsx @@ -15,7 +15,9 @@ export default contain( actions: 'jobActions', map({ job: { id, isHighlighted } = {}, - buttonId = paypalIds.regular, + buttonId = isHighlighted ? + paypalIds.highlighted : + paypalIds.regular, price = 200, discountAmount = 0, promoCode = '',