From 0c19b7300e28771e5cd6ed0806fa0db77c9fe8eb Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Fri, 31 Aug 2018 10:43:29 -0500 Subject: [PATCH] The close button no longer exists on embedded wizards --- client/js/nonprofits/donate/wizard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/nonprofits/donate/wizard.js b/client/js/nonprofits/donate/wizard.js index 752cce6d..73c6b6d4 100644 --- a/client/js/nonprofits/donate/wizard.js +++ b/client/js/nonprofits/donate/wizard.js @@ -154,8 +154,8 @@ const view = state => { }, [ h('img.closeButton', { props: {src: '/assets/ui_components/close.svg'} - , on: {click: ev => state.params$().offsite ? parent.postMessage('commitchange:close', '*') : null} - , class: {'u-hide': !state.params$().offsite} + , on: {click: ev => state.params$().offsite && !state.params$().embedded ? parent.postMessage('commitchange:close', '*') : null} + , class: {'u-hide': !state.params$().offsite || !state.params$().embedded} }) , h('div.titleRow', [ h('img', {props: {src: app.nonprofit.logo.normal.url}})