Skip to content

Commit

Permalink
Merge pull request #49 from aaron5670/hotfix-empty-search-page
Browse files Browse the repository at this point in the history
Hotfix: Empty search page because of wrong OR-operator
  • Loading branch information
aaron5670 authored Jun 28, 2023
2 parents 0d50d95 + 7e96dcd commit df139e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "toggle-experiment",
"displayName": "Toggle Experiment",
"description": "A browser extension to inject the LocalStorage of a website for Optimizely experiments.",
"version": "0.11.1",
"version": "0.11.2",
"author": "Aaron van den Berg",
"homepage": "https://aaronvandenberg.nl/",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function IndexPopup() {
defaultGradient: { deg: 45, from: "blue", to: "cyan" },
primaryColor: "blue"
};
console.log(screen);

return (
<MantineProvider theme={screen === "search-features" ? redTheme : blueTheme} withGlobalStyles withNormalizeCSS>
Expand All @@ -77,7 +78,7 @@ function IndexPopup() {
{screen === "settings" && <Settings />}
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
{/* @ts-expect-error => "search" is @deprecated */}
{screen === "search-experiments" || screen === "search" && <SearchExperiments />}
{(screen === "search-experiments" || screen === "search") && <SearchExperiments />}
{screen === "search-features" && <SearchFeatures />}
{screen === "connect-optimizely" && <ConnectOptimizely />}
{screen === "latest-release" && <LatestRelease />}
Expand Down

0 comments on commit df139e2

Please sign in to comment.