From adeebf9fbc2b791e25ce1acab522745f2fde2ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Tue, 30 Apr 2024 13:44:37 +0100 Subject: [PATCH] fix: Replace remaining `/amber` references (#3073) --- editor.planx.uk/src/components/Header.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/editor.planx.uk/src/components/Header.tsx b/editor.planx.uk/src/components/Header.tsx index b5a6acd96d..d29362a63f 100644 --- a/editor.planx.uk/src/components/Header.tsx +++ b/editor.planx.uk/src/components/Header.tsx @@ -587,14 +587,18 @@ const Toolbar: React.FC = ({ headerRef }) => { ]); // Editor and custom domains share a path, so we need to rely on previewEnvironment - if (previewEnvironment === "editor" && path !== "draft" && path !== "amber") { + if ( + previewEnvironment === "editor" && + path !== "draft" && + path !== "preview" + ) { return ; } switch (path) { case flowSlug: // Custom domains + case "published": case "preview": - case "amber": case "draft": case "pay": return ;