From f0aae2f2b6721c8bda5423ea4e2bf74e3da9548e Mon Sep 17 00:00:00 2001 From: Aaron van den Berg Date: Fri, 28 Jun 2024 14:46:48 +0200 Subject: [PATCH] Fix: Don't show current localstorage value if website doesn't have it --- package.json | 2 +- src/popup.tsx | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e4a3dde..08b9346 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "statsig-browser-extension", "displayName": "Statsig Features and Experimentation", - "version": "1.9.0", + "version": "1.9.1", "description": "A browser extension for the feature management and experimentation platform Statsig.", "author": "(Aaron van den Berg )", "homepage": "https://aaronvandenberg.nl/", diff --git a/src/popup.tsx b/src/popup.tsx index fd35c79..b221256 100644 --- a/src/popup.tsx +++ b/src/popup.tsx @@ -112,11 +112,11 @@ function IndexPopup() { Statsig logo
- {hasCustomOverride ? ( + {hasCustomOverride && ( - ) : ( + )} + {currentLocalStorageValue && !hasCustomOverride && ( <>

Current localStorage

@@ -145,7 +146,7 @@ function IndexPopup() { />
- )} + )}