From 3e5fa5573eccc8f050aaf5be387fa3b846deb0c8 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 10 Aug 2023 22:30:11 +0800 Subject: [PATCH] chore: update options initial state check --- extension/src/options.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/src/options.tsx b/extension/src/options.tsx index f80f448..0194386 100644 --- a/extension/src/options.tsx +++ b/extension/src/options.tsx @@ -21,6 +21,7 @@ const IndexOptions = () => { accessToken, }); const [shortcuts] = useStorage("shortcuts", []); + const isInitialized = domain && accessToken; useEffect(() => { setSettingState({ @@ -109,7 +110,7 @@ const IndexOptions = () => { - {shortcuts.length > 0 && ( + {isInitialized && shortcuts.length > 0 && ( <>