From b414e3b7e4e3495019432ab52773d0d10226865c Mon Sep 17 00:00:00 2001 From: Rish Date: Thu, 1 Oct 2020 12:17:57 +0530 Subject: [PATCH] Fixed empty accent color not set in preview mode no issue Current logic ignored empty accent color value coming from the preview url which did not unset the accent color when removed from preview. The fix allows for empty accent color in preview so that it can be reset to default. --- ghost/portal/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/portal/src/App.js b/ghost/portal/src/App.js index 2bdb8c6133..2527b580a8 100644 --- a/ghost/portal/src/App.js +++ b/ghost/portal/src/App.js @@ -191,7 +191,7 @@ export default class App extends React.Component { data.site.portal_plans = value ? value.split(',') : []; } else if (key === 'page' && value) { data.page = value; - } else if (key === 'accentColor' && value) { + } else if (key === 'accentColor' && (value === '' || value)) { data.site.accent_color = value; } else if (key === 'buttonIcon' && value) { data.site.portal_button_icon = value;