Skip to content

Commit

Permalink
fix: Replace remaining /amber references (#3073)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Apr 30, 2024
1 parent 415cdff commit adeebf9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions editor.planx.uk/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,14 +587,18 @@ const Toolbar: React.FC<ToolbarProps> = ({ 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 <EditorToolbar headerRef={headerRef} route={route}></EditorToolbar>;
}

switch (path) {
case flowSlug: // Custom domains
case "published":
case "preview":
case "amber":
case "draft":
case "pay":
return <PublicToolbar />;
Expand Down

0 comments on commit adeebf9

Please sign in to comment.