chore: update options initial state check

This commit is contained in:
Steven 2023-08-10 22:30:11 +08:00
parent 93ed3c81ff
commit 3e5fa5573e

View File

@ -21,6 +21,7 @@ const IndexOptions = () => {
accessToken,
});
const [shortcuts] = useStorage<Shortcut[]>("shortcuts", []);
const isInitialized = domain && accessToken;
useEffect(() => {
setSettingState({
@ -109,7 +110,7 @@ const IndexOptions = () => {
</div>
</div>
{shortcuts.length > 0 && (
{isInitialized && shortcuts.length > 0 && (
<>
<Divider className="!my-6" />