Skip to content

Commit df139e2

Browse files
authored
Merge pull request #49 from aaron5670/hotfix-empty-search-page
Hotfix: Empty search page because of wrong OR-operator
2 parents 0d50d95 + 7e96dcd commit df139e2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "toggle-experiment",
33
"displayName": "Toggle Experiment",
44
"description": "A browser extension to inject the LocalStorage of a website for Optimizely experiments.",
5-
"version": "0.11.1",
5+
"version": "0.11.2",
66
"author": "Aaron van den Berg",
77
"homepage": "https://aaronvandenberg.nl/",
88
"scripts": {

src/popup/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function IndexPopup() {
6767
defaultGradient: { deg: 45, from: "blue", to: "cyan" },
6868
primaryColor: "blue"
6969
};
70+
console.log(screen);
7071

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

0 commit comments

Comments
 (0)