mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-16 12:23:12 +00:00
chore: update options initial state check
This commit is contained in:
parent
93ed3c81ff
commit
3e5fa5573e
@ -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" />
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user